diff --git a/postinstall_partage.sh b/postinstall_partage.sh index 319ee082db228954fcf8b53c48c294d42159cbbf..3c797e04e4ebed93f1f0df6e3be2c12c8450ec73 100755 --- a/postinstall_partage.sh +++ b/postinstall_partage.sh @@ -29,7 +29,7 @@ apt-eole install -y \ git clone https://gitlab.tetras-libre.fr/tetras-libre/eole-wol cd eole-wol -cp */service/*.service /etc/systemd/system/ +cp $DIR/*/service/*.service /etc/systemd/system/ # Adding services systemctl daemon-reload diff --git a/postinstall_reseau.sh b/postinstall_reseau.sh index dbbaf4e836d3f11d3b610c7d64aea37a06fb1a73..8de46cbcb226c6782f1f241f9c409f25e0b7bd55 100755 --- a/postinstall_reseau.sh +++ b/postinstall_reseau.sh @@ -16,17 +16,12 @@ # You should have received a copy of the GNU General Public License # along with this program. If not, see <http://www.gnu.org/licenses/>. +DIR=$(dirname $0) + cd /var/www -DIR=`dirname $0` apt-eole update apt-eole install -y git git clone https://gitlab.tetras-libre.fr/tetras-libre/eole-wol chown -R www-data:www-data eole-wol/wol/www - -cp $DIR/wol/service/wakeonlan.service /etc/systemd/system/ -systemctl daemon-reload -systemctl start wakeonlan -systemctl enable wakeonlan -systemctl status wakeonlan