diff --git a/install.sh b/install.sh index ca76d6f..d4fd976 100644 --- a/install.sh +++ b/install.sh @@ -1,25 +1,25 @@ -#! /bin/bash +#!/bin/bash # fact checking -PATH="$(pwd)" -USER="$(stat -c '%U' $PATH/lamapolldsgvo.desktop)" +PATH="$(/usr/bin/pwd)" +USER="$(/usr/bin/stat -c '%U' $PATH/lamapolldsgvo.desktop)" # install .desktop file -install -m 644 $PATH/lamapolldsgvo.desktop -o root -g root /usr/share/applications/lamapolldsgvo.desktop +/usr/bin/install -m 644 $PATH/lamapolldsgvo.desktop -o root -g root /usr/share/applications/lamapolldsgvo.desktop #cp $PATH/lamapolldsgvo.desktop /usr/share/applications/lamapolldsgvo.desktop #chown root:root /usr/share/applications/lamapolldsgvo.desktop #chmod 644 /usr/share/applications/lamapolldsgvo.desktop # install actual script -install -m 775 $PATH/lamapoll-DSGVO.sh -o root -g root /usr/local/bin/lamapoll-DSGVO.sh +/usr/bin/install -m 775 $PATH/lamapoll-DSGVO.sh -o root -g root /usr/local/bin/lamapoll-DSGVO.sh #cp $PATH/lamapoll-DSGVO.sh /usr/local/bin/lamapoll-DSGVO.sh #chown root:root /usr/local/bin/lamapoll-DSGVO.sh #chmod 775 /usr/local/bin/lamapoll-DSGVO.sh # install link into start menu -sudo -u $USER "desktop-file-install --dir=/home/$USER/.local/share/applications /usr/share/applications/lamapoll-dsgvo.desktop" -sudo -u $USER "update-desktop-database -v ~/.local/share/applications" +/usr/bin/sudo -u $USER "desktop-file-install --dir=/home/$USER/.local/share/applications /usr/share/applications/lamapoll-dsgvo.desktop" +/usr/bin/sudo -u $USER "/usr/bin/update-desktop-database -v ~/.local/share/applications" echo "Installation done." \ No newline at end of file