diff options
author | Javier Sánchez Parra <jsanchez@soleta.eu> | 2020-06-23 13:49:05 +0200 |
---|---|---|
committer | OpenGnSys Support Team <soporte-og@soleta.eu> | 2020-06-24 13:22:09 +0200 |
commit | 2c69d57eedf9af2c32231a9b93492516096356f1 (patch) | |
tree | c3baaa809420f822c6a5ad2aba72aa1797d846ca /installer/opengnsys_installer.sh | |
parent | 1f43ddcb59974fe3c61e4414511ebac5661952fd (diff) |
#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.
Diffstat (limited to 'installer/opengnsys_installer.sh')
-rwxr-xr-x | installer/opengnsys_installer.sh | 4 |
1 files changed, 2 insertions, 2 deletions
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 |