diff --git a/postinstall_reseau.sh b/postinstall_reseau.sh index c99ee1aeea03ac0284abdc8623e63b6bab7e4d56..dbbaf4e836d3f11d3b610c7d64aea37a06fb1a73 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