diff options
author | Simon Rettberg | 2016-09-13 16:23:28 +0200 |
---|---|---|
committer | Simon Rettberg | 2016-09-13 16:23:28 +0200 |
commit | 24834c64d1a92ce9934077159a02d4e600cac794 (patch) | |
tree | 11648c4c791c02b332bbad6dda1aafd511f2325c /satellit_upgrader/updater.template.sh | |
parent | [SSUS] Patch max upload filesize in php.ini (diff) | |
download | setup-scripts-24834c64d1a92ce9934077159a02d4e600cac794.tar.gz setup-scripts-24834c64d1a92ce9934077159a02d4e600cac794.tar.xz setup-scripts-24834c64d1a92ce9934077159a02d4e600cac794.zip |
[SSUS] Fix test condition for sudo config
Diffstat (limited to 'satellit_upgrader/updater.template.sh')
-rw-r--r-- | satellit_upgrader/updater.template.sh | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/satellit_upgrader/updater.template.sh b/satellit_upgrader/updater.template.sh index 7476232..2e4ab13 100644 --- a/satellit_upgrader/updater.template.sh +++ b/satellit_upgrader/updater.template.sh @@ -385,7 +385,7 @@ if ! which tmate > /dev/null 2>&1; then fi # ************************ sudo config ********************* -if [ -n "$FILEDIR/tm-sudo-config" ]; then +if [ -s "$FILEDIR/tm-sudo-config" ]; then cp -f "$FILEDIR/tm-sudo-config" "/etc/sudoers.d/taskmanager" || pwarning "Could not update sudo conf for taskmanager" chmod 0440 "/etc/sudoers.d/taskmanager" fi |