We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c83c523 commit cb079b0Copy full SHA for cb079b0
install/upgrade/versions/1.4.0.sh
@@ -112,4 +112,13 @@ if [ "$API" = "no" ]; then
112
echo "[ * ] Disabling API access..."
113
$HESTIA/bin/v-change-sys-api remove
114
fi
115
-fi
+fi
116
+
117
+# Back up users existing configuration data to $HESTIA/conf/defaults/hestia.conf
118
+if [ ! -f "$HESTIA/conf/defaults/hestia.conf" ]; then
119
+ echo "[ * ] Creating known good configuration data for system recovery..."
120
+ if [ ! -d "$HESTIA/conf/defaults/" ]; then
121
+ mkdir -p "$HESTIA/conf/defaults/"
122
+ fi
123
+ cp -f $HESTIA/conf/hestia.conf $HESTIA/conf/defaults/hestia.conf
124
0 commit comments