Git-Url: http://git.frugalware.org/gitweb/gitweb.cgi?p=frugalware-current.git;a=commitdiff;h=6606e3d2f53ffdfb056b973976d8a254639646ee
commit 6606e3d2f53ffdfb056b973976d8a254639646ee Author: crazy <cr...@frugalware.org> Date: Mon Aug 7 23:31:19 2017 +0200 systemd.install: kill sysV and fix local vars diff --git a/source/include/systemd.install b/source/include/systemd.install index a82b5db..d3e1442 100644 --- a/source/include/systemd.install +++ b/source/include/systemd.install @@ -1,14 +1,11 @@ -sysvinit_units=(@_F_sysvinit_units@) systemd_units=(@_F_systemd_units@) post_install() { local unit local op + local i - for i in ${sysvinit_units[@]}; do - chkconfig --del rc.$i >/dev/null 2>&1 - done for i in ${systemd_units[@]}; do unit=$(echo $i | cut -f 1 -d '=') @@ -24,9 +21,6 @@ post_install() post_upgrade() { - for i in ${sysvinit_units[@]}; do - chkconfig --del rc.$i >/dev/null 2>&1 - done systemctl daemon-reload >/dev/null 2>&1 } @@ -34,10 +28,7 @@ post_upgrade() pre_remove() { local unit - - for i in ${sysvinit_units[@]}; do - chkconfig --del rc.$i >/dev/null 2>&1 - done + local i for i in ${systemd_units[@]}; do unit=$(echo $i | cut -f 1 -d '=') _______________________________________________ Frugalware-git mailing list Frugalware-git@frugalware.org http://frugalware.org/mailman/listinfo/frugalware-git