parameters for custom service names
This commit is contained in:
parent
9d007a67ca
commit
c0e77c7336
@ -187,6 +187,34 @@ while [ $# -gt 0 ]; do
|
|||||||
badParam empty "$@"
|
badParam empty "$@"
|
||||||
fi
|
fi
|
||||||
;;
|
;;
|
||||||
|
--seafile-service)
|
||||||
|
# name of seafile service
|
||||||
|
if [ -n "$2" ]; then
|
||||||
|
if ! systemctl list-unit-files | grep -Eq "^$2 |^$2.service"
|
||||||
|
then
|
||||||
|
badParam svc "$@"
|
||||||
|
else
|
||||||
|
seafService="${2}"
|
||||||
|
shift
|
||||||
|
fi
|
||||||
|
else
|
||||||
|
badParam empty "$@"
|
||||||
|
fi
|
||||||
|
;;
|
||||||
|
--seahub-service)
|
||||||
|
# name of seahub service
|
||||||
|
if [ -n "$2" ]; then
|
||||||
|
if ! systemctl list-unit-files | grep -Eq "^$2 |^$2.service"
|
||||||
|
then
|
||||||
|
badParam svc "$@"
|
||||||
|
else
|
||||||
|
seafHub="${2}"
|
||||||
|
shift
|
||||||
|
fi
|
||||||
|
else
|
||||||
|
badParam empty "$@"
|
||||||
|
fi
|
||||||
|
;;
|
||||||
-o|--offline)
|
-o|--offline)
|
||||||
# shutdown seafile during backup
|
# shutdown seafile during backup
|
||||||
offlineBackup=1
|
offlineBackup=1
|
||||||
|
Loading…
Reference in New Issue
Block a user