Merge pull request #1063 from corochoone/master

Fix loss of the owner / group / permissions of the configuration file…
This commit is contained in:
Made I.T 2017-03-02 12:04:22 +01:00 committed by GitHub
commit 041d7cb5b4

View file

@ -104,7 +104,8 @@ if [ "$update" = 'yes' ] && [ "$restart" != 'no' ]; then
service $service restart >/dev/null 2>&1
if [ $? -ne 0 ]; then
for config in $dst; do
mv -f $config.vst.back $config
cat $config.vst.back > $config
rm -f $config.vst.back
done
check_result $E_RESTART "$service failed to start with new config"
fi