diff --git a/postinstall_partage.sh b/postinstall_partage.sh index 19b3922eab3f6d5a7856cf9be0541cba87a56c8b..4c2b14c6f729c1246464f8e8b892a22b81bc4bf1 100755 --- a/postinstall_partage.sh +++ b/postinstall_partage.sh @@ -16,8 +16,6 @@ # 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=$(realpath $(dirname $0)) - cd /opt if [ "$(dpkg -l | grep git)" ] @@ -40,6 +38,8 @@ else git pull origin master fi +DIR=$PWD + cp -v $DIR/*/service/*.service /etc/systemd/system/ dpkg -i cups/deb/*.deb diff --git a/postinstall_reseau.sh b/postinstall_reseau.sh index d8c6d887a3045eb9de26479d7311319f0c9c7aa3..f818a345c170abde739c2b5d762285e0005a8b30 100755 --- a/postinstall_reseau.sh +++ b/postinstall_reseau.sh @@ -16,8 +16,6 @@ # 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 if [ "$(dpkg -l | grep git)" ]