Commit ec0ff36b authored by Maren Hachmann's avatar Maren Hachmann

Add installation info for users that cannot do sudo.

parent 820002da
......@@ -172,10 +172,12 @@ PROFILE_DIR=$SAVE_PROFILES_TO/inkscape_$BRANCH
mkdir -p $PROFILE_DIR
# Install new package
echo "$MARKER Installing new version..."
notify-send 'Build Completed!' 'Please enter your password to install.' --icon=dialog-information
sudo dpkg -i $PACKAGE_DIR/inkscape-*.deb
# Install new package, if sudo is available for the current user:
if groups | grep -qw "sudo"; then
echo "$MARKER Installing new version..."
notify-send 'Build Completed!' 'Please enter your password to install.' --icon=dialog-information
sudo dpkg -i $PACKAGE_DIR/inkscape-*.deb
fi
INK_PROG="$INSTALL_DIR/bin/inkscape"
INK_DIR="$INSTALL_DIR/bin"
......@@ -236,6 +238,13 @@ create_menu_entry "Inkscape $BRANCH" "Inkscape Custom Build ($DATE, revision $RE
create_menu_entry "Inkscape $BRANCH (debug)" "Inkscape Custom Debug Build ($DATE, revision $REVISION)" $STARTER_FILE_DEBUG false inkscape-$BRANCH-debug.desktop
# Some distros do not have sudo:
if ! groups | grep -qw "sudo"; then
echo "$MARKER Install your new Inkscape version with administrator permissions:
dpkg -i $PACKAGE_DIR/inkscape-*.deb"
notify-send 'Build Completed!' 'Please install the new Inkscape package.' --icon=dialog-information
fi
echo "Start your Inkscape installation by executing
$STARTER_FILE (or $STARTER_FILE_DEBUG)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment