Add proftpd as service

This commit is contained in:
Johannes Zellner
2019-03-18 19:02:32 -07:00
parent a435e88b25
commit cde852f0f9
5 changed files with 172 additions and 0 deletions

18
src/scripts/restartproftpd.sh Executable file
View File

@@ -0,0 +1,18 @@
#!/bin/bash
set -eu -o pipefail
if [[ ${EUID} -ne 0 ]]; then
echo "This script should be run as root." > /dev/stderr
exit 1
fi
if [[ $# == 1 && "$1" == "--check" ]]; then
echo "OK"
exit 0
fi
if [[ "${BOX_ENV}" == "cloudron" ]]; then
systemctl restart proftpd
fi