Compare commits
3 commits
e2f5b04f7f
...
f76257a2b4
Author | SHA1 | Date | |
---|---|---|---|
Julien Oculi | f76257a2b4 | ||
Julien Oculi | dad7a648c5 | ||
Julien Oculi | 60b6731474 |
|
@ -16,7 +16,7 @@ sudo chmod +x ./install.sh
|
||||||
sudo chmod +x ./deploy.sh
|
sudo chmod +x ./deploy.sh
|
||||||
|
|
||||||
# Install and deploy services
|
# Install and deploy services
|
||||||
sudo ./install.sh * && sudo ./deploy.sh *
|
sudo ./install.sh --all && sudo ./deploy.sh --all
|
||||||
```
|
```
|
||||||
|
|
||||||
## Installation
|
## Installation
|
||||||
|
@ -37,7 +37,7 @@ sudo (bash|sh|zsh) ./install.sh [SERVICES...]
|
||||||
```
|
```
|
||||||
- Install all services.
|
- Install all services.
|
||||||
```sh
|
```sh
|
||||||
sudo ./install.sh *
|
sudo ./install.sh -a
|
||||||
```
|
```
|
||||||
|
|
||||||
## Déploiement
|
## Déploiement
|
||||||
|
@ -60,5 +60,5 @@ sudo (bash|sh|zsh) ./deploy.sh [SERVICES...]
|
||||||
```
|
```
|
||||||
- Install all services.
|
- Install all services.
|
||||||
```sh
|
```sh
|
||||||
sudo ./deploy.sh *
|
sudo ./deploy.sh -a
|
||||||
```
|
```
|
||||||
|
|
|
@ -1,10 +1,12 @@
|
||||||
APPS=$@
|
APPS=$@
|
||||||
|
|
||||||
if [[ $1 == "*" && $# -eq 1 ]]; then
|
if [[ $# -eq 1 ]]; then
|
||||||
|
if [[ $1 == "--all" $1 == "-a" ]]; then
|
||||||
APPS=$(ls -d */)
|
APPS=$(ls -d */)
|
||||||
fi
|
fi
|
||||||
|
fi
|
||||||
|
|
||||||
for app in "$APPS"
|
for app in $APPS
|
||||||
do
|
do
|
||||||
echo "[server_config] > Deploying: $app"
|
echo "[server_config] > Deploying: $app"
|
||||||
|
|
||||||
|
|
|
@ -5,11 +5,13 @@ source ./_requirements.sh
|
||||||
# Install services
|
# Install services
|
||||||
APPS=$@
|
APPS=$@
|
||||||
|
|
||||||
if [[ $1 == "*" && $# -eq 1 ]]; then
|
if [[ $# -eq 1 ]]; then
|
||||||
|
if [[ $1 == "--all" $1 == "-a" ]]; then
|
||||||
APPS=$(ls -d */)
|
APPS=$(ls -d */)
|
||||||
fi
|
fi
|
||||||
|
fi
|
||||||
|
|
||||||
for app in "$APPS"
|
for app in $APPS
|
||||||
do
|
do
|
||||||
echo "[server_config] > Installing: $app"
|
echo "[server_config] > Installing: $app"
|
||||||
|
|
||||||
|
|
|
@ -1 +1 @@
|
||||||
nala install iptables
|
nala install -y iptables
|
||||||
|
|
Loading…
Reference in a new issue