Skip to content

Commit a22e510

Browse files
author
Kristan Kenney
committed
Rename function
1 parent b63b12a commit a22e510

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

func/syshealth.sh

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -147,10 +147,11 @@ function syshealth_repair_web_config() {
147147
done
148148
}
149149

150-
function syshealth_restore_system_installed_defaults() {
150+
function syshealth_restore_system_installed_config() {
151151
if [ -f "$HESTIA/conf/defaults/hestia.conf" ]; then
152152
mv $HESTIA/conf/hestia.conf $HESTIA/conf/hestia.conf.old
153153
cp $HESTIA/conf/defaults/hestia.conf $HESTIA/conf/hestia.conf
154+
rm -f $HESTIA/conf/hestia.conf.old
154155
else
155156
echo "ERROR: System default configuration file not found, aborting."
156157
exit 1

0 commit comments

Comments
 (0)