Skip to content
Snippets Groups Projects
Commit 1c52f861 authored by Christopher Spinrath's avatar Christopher Spinrath
Browse files

Root Berechtigung und Mount-Fix

Das infuse_offline_repo.sh Skript prueft jetzt auf root-Berechtigung.
Außerdem wird das mount-Skript jetzt korrekt aufgerufen ( relativ zum Skriptverzeichnis und nicht mehr relativ zum Arbeitsverzeichnis )
parent 5d6e57f9
No related branches found
No related tags found
No related merge requests found
#!/bin/bash
PKG_LIST="cowsay fish get-flash-videos gnome haskell-platform java7-jdk imagemagick rxvt-unicode moc nethack-console scrot sl tmux vim xcowsay zsh zsh-doc texmaker gimp pidgin smplayer subversion git lftp inkscape"
MY_DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
source mount-stick-repo.sh #detect mountpoint
if [[ $UID -ne 0 ]]; then
echo "$0 must be run as root"
exit 1
fi
MPOINT=""
source $MY_DIR/mount-stick-repo.sh #detect mountpoint
if [ -n $MPOINT ]; then
SOURCE_PATH="$MPOINT"
#check if we have root perms?
MERGE_DIR=$(mktemp -d)
CACHE_DIR="/var/cache/apt/archives/"
ARCH="i386"
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment