diff options
author | ivan <ivan> | 2004-12-20 08:16:15 +0000 |
---|---|---|
committer | ivan <ivan> | 2004-12-20 08:16:15 +0000 |
commit | 7e393bf077b6952b75f4470e8fe8d6388c17976c (patch) | |
tree | 90ba38d1a468a19d1b48fe379c720725048a1210 /Makefile | |
parent | 3485c34d9374892c3e4d6a56c7dd5f47f480f024 (diff) |
add init script enable command in deb and redhat
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 8 |
1 files changed, 8 insertions, 0 deletions
@@ -34,6 +34,13 @@ INIT_FILE = /etc/init.d/freeside #freebsd #INIT_FILE = /usr/local/etc/rc.d/011.freeside.sh +#deb +INIT_INSTALL = "/usr/sbin/update-rc.d freeside defaults 21 20" +#redhat, fedora +#INIT_INSTALL = "/sbin/chkconfig freeside" +#not necessary (freebsd) +#INIT_INSTALL = "/bin/true" + #deb, suse HTTPD_RESTART = /etc/init.d/apache restart #redhat, fedora, mandrake @@ -175,6 +182,7 @@ install-init: s/%%%SELFSERVICE_USER%%%/${SELFSERVICE_USER}/g;\ s/%%%SELFSERVICE_MACHINES%%%/${SELFSERVICE_MACHINES}/g;\ " ${INIT_FILE} + ${INIT_INSTALL} install-selfservice: [ -e ~freeside/.ssh/id_dsa.pub ] || su -c 'ssh-keygen -t dsa' - freeside |