From 2c69d57eedf9af2c32231a9b93492516096356f1 Mon Sep 17 00:00:00 2001 From: Javier Sánchez Parra Date: Tue, 23 Jun 2020 13:49:05 +0200 Subject: #987 Use systemctl to disable/enable services in Ubuntu OpenGnsys install and update scripts were still using update-rc to disable and enable services in Debian/Ubuntu. But, since Debian 8 and Ubuntu 15, this should be done with systemd systemctl. --- installer/opengnsys_installer.sh | 4 ++-- installer/opengnsys_update.sh | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) (limited to 'installer') diff --git a/installer/opengnsys_installer.sh b/installer/opengnsys_installer.sh index 8a9de630..1419a138 100755 --- a/installer/opengnsys_installer.sh +++ b/installer/opengnsys_installer.sh @@ -200,8 +200,8 @@ case "$OSDISTRIB" in STARTSERVICE="eval /etc/init.d/\$service restart" STOPSERVICE="eval /etc/init.d/\$service stop" fi - ENABLESERVICE="eval update-rc.d \$service defaults" - DISABLESERVICE="eval update-rc.d \$service disable" + ENABLESERVICE="eval systemctl enable \$service.service" + DISABLESERVICE="eval systemctl disable \$service.service" APACHESERV=apache2 APACHECFGDIR=/etc/apache2 APACHESITESDIR=sites-available diff --git a/installer/opengnsys_update.sh b/installer/opengnsys_update.sh index bb589211..3a646abf 100755 --- a/installer/opengnsys_update.sh +++ b/installer/opengnsys_update.sh @@ -131,7 +131,7 @@ function autoConfigure() STOPSERVICE="eval /etc/init.d/\$service stop" SERVICESTATUS="eval /etc/init.d/\$service status" fi - ENABLESERVICE="eval update-rc.d \$service defaults" + ENABLESERVICE="eval systemctl enable \$service.service" APACHEENABLEMODS="ssl rewrite proxy_fcgi fastcgi actions alias" APACHEDISABLEMODS="php" APACHEUSER="www-data" -- cgit v1.2.3-18-g5258