Skip to content
Snippets Groups Projects
Commit 098d02f1 authored by Bob Mottram's avatar Bob Mottram
Browse files

Variable for package removal

parent 572c635d
No related branches found
No related tags found
No related merge requests found
......@@ -330,7 +330,7 @@ function remove_keyserver {
if [ -f /etc/cron.hourly/keyserver-watchdog ]; then
rm /etc/cron.hourly/keyserver-watchdog
fi
apt-get -qy remove sks dirmngr
$REMOVE_PACKAGES sks dirmngr
read_config_param "KEYSERVER_DOMAIN_NAME"
nginx_dissite "$KEYSERVER_DOMAIN_NAME"
......
......@@ -599,7 +599,7 @@ function remove_matrix {
rm /etc/systemd/system/matrix.service
fi
systemctl daemon-reload
apt-get -y remove --purge coturn
$REMOVE_PACKAGES_PURGE coturn
cd /etc/matrix || exit 26472462
pip uninstall .
rm -rf $MATRIX_DATA_DIR
......
......@@ -104,7 +104,7 @@ function reconfigure_profanity {
function upgrade_profanity {
# update profanity client
if [ -f /usr/bin/profanity ]; then
apt-get -y remove --purge profanity
$REMOVE_PACKAGES_PURGE profanity
fi
rm -rf /tmp/*
......
......@@ -54,7 +54,7 @@ function remove_turn {
fi
systemctl daemon-reload
apt-get -y remove coturn
$REMOVE_PACKAGES coturn
rm -rf /var/lib/turn
sed -i "/# TURN Server/,/# End of TURN Server/d" "/etc/nginx/sites-available/${DEFAULT_DOMAIN_NAME}"
remove_onion_service turn ${TURN_ONION_PORT}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment