add import and export
This commit is contained in:
1 parent
d4bd93bbe1
commit
35f541458c
7 files changed
+369
-38
No files matched your search
+3
-1
@@ -10,7 +10,9 @@ case "$1" in
|
||||
units=$(systemctl list-units --plain --no-legend --all 'terraria@*.service' | awk '{print $1}')
|
||||
if [ -n "$units" ]; then
|
||||
echo "Stopping Terraria instances: $units"
|
||||
systemctl stop "$units" || true
|
||||
# Unquoted on purpose: each unit name must be a separate argument
|
||||
# shellcheck disable=SC2086
|
||||
systemctl stop $units || true
|
||||
fi
|
||||
fi
|
||||
;;
|
||||
|
||||
Reference in new issue
Block a user