function to remove hubzilla
This commit is contained in:
parent
7612453887
commit
ebd7f2522d
|
@ -38,6 +38,23 @@ HUBZILLA_ADMIN_PASSWORD=
|
||||||
HUBZILLA_COMMIT='2d79e75788aa71664a379c4cea0b6bfe3ab87ad0'
|
HUBZILLA_COMMIT='2d79e75788aa71664a379c4cea0b6bfe3ab87ad0'
|
||||||
HUBZILLA_ADDONS_COMMIT='67b40c7a40f328a93ee030eb15e9e1261f3cba64'
|
HUBZILLA_ADDONS_COMMIT='67b40c7a40f328a93ee030eb15e9e1261f3cba64'
|
||||||
|
|
||||||
|
function remove_hubzilla {
|
||||||
|
if ! grep -Fxq "install_hubzilla" $COMPLETION_FILE; then
|
||||||
|
return
|
||||||
|
fi
|
||||||
|
nginx_dissite $HUBZILLA_DOMAIN_NAME
|
||||||
|
if [ -d /var/www/$HUBZILLA_DOMAIN_NAME ]; then
|
||||||
|
rm -rf /var/www/$HUBZILLA_DOMAIN_NAME
|
||||||
|
fi
|
||||||
|
if [ -f /etc/nginx/sites-available/$HUBZILLA_DOMAIN_NAME ]; then
|
||||||
|
rm /etc/nginx/sites-available/$HUBZILLA_DOMAIN_NAME
|
||||||
|
fi
|
||||||
|
function_check drop_database
|
||||||
|
drop_database hubzilla
|
||||||
|
sed -i '/install_hubzilla/d' $COMPLETION_FILE
|
||||||
|
sed -i '/Hubzilla /d' $COMPLETION_FILE
|
||||||
|
}
|
||||||
|
|
||||||
function install_hubzilla {
|
function install_hubzilla {
|
||||||
if [[ $SYSTEM_TYPE == "$VARIANT_CLOUD" || $SYSTEM_TYPE == "$VARIANT_MAILBOX" || $SYSTEM_TYPE == "$VARIANT_CHAT" || $SYSTEM_TYPE == "$VARIANT_WRITER" || $SYSTEM_TYPE == "$VARIANT_MEDIA" || $SYSTEM_TYPE == "$VARIANT_DEVELOPER" || $SYSTEM_TYPE == "$VARIANT_MESH" ]]; then
|
if [[ $SYSTEM_TYPE == "$VARIANT_CLOUD" || $SYSTEM_TYPE == "$VARIANT_MAILBOX" || $SYSTEM_TYPE == "$VARIANT_CHAT" || $SYSTEM_TYPE == "$VARIANT_WRITER" || $SYSTEM_TYPE == "$VARIANT_MEDIA" || $SYSTEM_TYPE == "$VARIANT_DEVELOPER" || $SYSTEM_TYPE == "$VARIANT_MESH" ]]; then
|
||||||
return
|
return
|
||||||
|
|
Loading…
Reference in New Issue