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 3f84ec3 commit 3762b42Copy full SHA for 3762b42
install/upgrade/versions/1.4.0.sh
@@ -105,3 +105,11 @@ if [ -f /etc/apt/sources.list.d/postgresql.list ]; then
105
echo "[ * ] Updating PostgreSQL repository..."
106
sed -i 's|deb https://apt.postgresql.org/pub/repos/apt/|deb [arch=amd64] https://apt.postgresql.org/pub/repos/apt/|g' /etc/apt/sources.list.d/postgresql.list
107
fi
108
+
109
+# Remove API file if API is set to "no"
110
+if [ "$API" = "no" ]; then
111
+ if [ -f "$HESTIA/web/api/index.php" ]; then
112
+ echo "[ * ] Disabling API access..."
113
+ $HESTIA/bin/v-change-sys-api remove
114
+ fi
115
+fi
0 commit comments