Compare commits

..

No commits in common. "f76257a2b437a327f5233e6c644c7f6678c3a459" and "e2f5b04f7f07723f91274614f15e4c0b02bf038a" have entirely different histories.

4 changed files with 12 additions and 16 deletions

View file

@ -16,7 +16,7 @@ sudo chmod +x ./install.sh
sudo chmod +x ./deploy.sh
# Install and deploy services
sudo ./install.sh --all && sudo ./deploy.sh --all
sudo ./install.sh * && sudo ./deploy.sh *
```
## Installation
@ -37,7 +37,7 @@ sudo (bash|sh|zsh) ./install.sh [SERVICES...]
```
- Install all services.
```sh
sudo ./install.sh -a
sudo ./install.sh *
```
## Déploiement
@ -60,5 +60,5 @@ sudo (bash|sh|zsh) ./deploy.sh [SERVICES...]
```
- Install all services.
```sh
sudo ./deploy.sh -a
sudo ./deploy.sh *
```

View file

@ -1,12 +1,10 @@
APPS=$@
if [[ $# -eq 1 ]]; then
if [[ $1 == "--all" $1 == "-a" ]]; then
APPS=$(ls -d */)
fi
if [[ $1 == "*" && $# -eq 1 ]]; then
APPS=$(ls -d */)
fi
for app in $APPS
for app in "$APPS"
do
echo "[server_config] > Deploying: $app"

View file

@ -5,13 +5,11 @@ source ./_requirements.sh
# Install services
APPS=$@
if [[ $# -eq 1 ]]; then
if [[ $1 == "--all" $1 == "-a" ]]; then
APPS=$(ls -d */)
fi
if [[ $1 == "*" && $# -eq 1 ]]; then
APPS=$(ls -d */)
fi
for app in $APPS
for app in "$APPS"
do
echo "[server_config] > Installing: $app"

View file

@ -1 +1 @@
nala install -y iptables
nala install iptables