From 9ebfd9f6df21748cfdf34cf29d96a7a536695d5f Mon Sep 17 00:00:00 2001 From: David Beniamine <david.beniamine@tetras-libre.fr> Date: Fri, 28 Sep 2018 14:41:44 +0200 Subject: [PATCH] Add wakelon service --- postinstall_reseau.sh | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/postinstall_reseau.sh b/postinstall_reseau.sh index c99ee1a..dbbaf4e 100755 --- a/postinstall_reseau.sh +++ b/postinstall_reseau.sh @@ -17,6 +17,7 @@ # along with this program. If not, see <http://www.gnu.org/licenses/>. cd /var/www +DIR=`dirname $0` apt-eole update apt-eole install -y git @@ -24,4 +25,8 @@ git clone https://gitlab.tetras-libre.fr/tetras-libre/eole-wol chown -R www-data:www-data eole-wol/wol/www -# TODO : should I add a ligne to apache2 config ? +cp $DIR/wol/service/wakeonlan.service /etc/systemd/system/ +systemctl daemon-reload +systemctl start wakeonlan +systemctl enable wakeonlan +systemctl status wakeonlan -- GitLab