Skip to content

Commit

Permalink
Update run.sh
Browse files Browse the repository at this point in the history
Tidied it up (and testing the Docker Webhook thing.
  • Loading branch information
ajw107 authored Oct 25, 2016
1 parent 3d58c58 commit 18fa1f5
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions run.sh
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ then
addgroup abc --gid "${PGID}"
elif [ ! "$(id -g abc)" -eq "${PGID}" ]
then
#the group exists, but we need to change its id
#the group exists, but we need to change their id
groupmod -o -g "${PGID}" abc
fi

Expand All @@ -28,7 +28,7 @@ then
abc
elif [ ! "$(id -u abc)" -eq "${PUID}" ]
then
#the user does exist,but we need to change it's id
#the user does exist,but we need to change their id
usermod -o -u "$PUID" abc
fi

Expand All @@ -44,8 +44,11 @@ if [ ! -d "${APP}" ]
then
mkdir -p "${APP}"
fi

#make sure we have the right permissions
chown -R "${PUID}:${PGID}" "${APP}"

#now set up the config directory, unless it already exists
if [ ! -d "${CONFIG}" ]
then
mkdir -p "${CONFIG}"
Expand All @@ -72,6 +75,7 @@ then
paver libunrar
else
cd "${APP}/${APPNAME}"
git stash
git pull
fi
Expand All @@ -82,6 +86,7 @@ echo "CONFIG: [${CONFIG}]"
echo "DATA: [${DATA}]"
echo "CS_OPTIONS: [${CS_OPTIONS}]"
#phew, now we get to run it eventually
./comicstreamer $CS_OPTIONS
EOF

0 comments on commit 18fa1f5

Please sign in to comment.