Commit 1c52f861 authored by Christopher Spinrath's avatar Christopher Spinrath

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
#!/bin/bash #!/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" 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 if [ -n $MPOINT ]; then
SOURCE_PATH="$MPOINT" SOURCE_PATH="$MPOINT"
#check if we have root perms?
MERGE_DIR=$(mktemp -d) MERGE_DIR=$(mktemp -d)
CACHE_DIR="/var/cache/apt/archives/" CACHE_DIR="/var/cache/apt/archives/"
ARCH="i386" ARCH="i386"
......
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