mirror of
https://github.com/myvesta/vesta
synced 2025-08-19 04:50:47 -07:00
Merge pull request #1063 from corochoone/master
Fix loss of the owner / group / permissions of the configuration file…
This commit is contained in:
commit
041d7cb5b4
1 changed files with 2 additions and 1 deletions
|
@ -104,7 +104,8 @@ if [ "$update" = 'yes' ] && [ "$restart" != 'no' ]; then
|
||||||
service $service restart >/dev/null 2>&1
|
service $service restart >/dev/null 2>&1
|
||||||
if [ $? -ne 0 ]; then
|
if [ $? -ne 0 ]; then
|
||||||
for config in $dst; do
|
for config in $dst; do
|
||||||
mv -f $config.vst.back $config
|
cat $config.vst.back > $config
|
||||||
|
rm -f $config.vst.back
|
||||||
done
|
done
|
||||||
check_result $E_RESTART "$service failed to start with new config"
|
check_result $E_RESTART "$service failed to start with new config"
|
||||||
fi
|
fi
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue