fix setup scripts

This commit is contained in:
Didier Slof 2022-12-05 15:13:59 +01:00
parent 2eb56fbf1a
commit b68f4b603d
Signed by: didier
GPG key ID: 01E71F18AA4398E5
2 changed files with 9 additions and 6 deletions

1
.gitignore vendored
View file

@ -1,2 +1,3 @@
*.tar *.tar
*.tar.gz *.tar.gz
.idea

12
man
View file

@ -72,11 +72,11 @@ handleFallthrough() {
setup:*|s:*) setup:*|s:*)
WHAT=`echo $cmd | cut -c8-` WHAT=`echo $cmd | cut -c8-`
case $WHAT in case $WHAT in
ports) sudo setup-ports.sh up ;; ports) sudo ./utils/setup-ports.sh up ./utils/rulelist.rules ;;
def) sudo setup.sh ;; def) sudo ./utils/setup.sh ;;
all|a) all|a)
sudo setup.sh sudo ./utils/setup.sh
sudo setup-ports.sh up sudo ./utils/setup-ports.sh up ./utils/rulelist.rules
;; ;;
*) fatal "not supported" ;; *) fatal "not supported" ;;
esac esac
@ -115,7 +115,9 @@ handleFallthrough() {
_hr "Commands" " " " " _hr "Commands" " " " "
_hr _hr
_r "dpf" "Delete project files." "delete-project-files <name>" _r "dpf" "Delete project files." "delete-project-files <name>"
_r "setup" "Run setup script." "sh ./utils/setup.sh" _r "setup:ports" "Setup ports." "setup:ports"
_r "setup:def" "Setup default." "setup:def"
_r "setup:all" "Setup all." "setup:all"
_r "make:dc <name>" "Make docker-compose file." "make:docker-compose <name>" _r "make:dc <name>" "Make docker-compose file." "make:docker-compose <name>"
_r "make:backup <name>" "Make backup file." "tar cvf <name>.tar.gz /srv" _r "make:backup <name>" "Make backup file." "tar cvf <name>.tar.gz /srv"
_hr _hr