always-as-root.sh 260 B

123456789101112131415161718
  1. #!/usr/bin/env bash
  2. #== Bash helpers ==
  3. function info {
  4. echo " "
  5. echo "--> $1"
  6. echo " "
  7. }
  8. #== Provision script ==
  9. info "Provision-script user: `whoami`"
  10. info "Restart web-stack"
  11. service php7.2-fpm restart
  12. service nginx restart
  13. service mysql restart