Added -p to mkdir and made uninstall.sh delete /etc/wlgb

This commit is contained in:
Winston Li 2014-12-05 22:43:24 +00:00
parent 5e8836df1a
commit e6274b110b
2 changed files with 3 additions and 2 deletions

View file

@ -6,7 +6,7 @@ command -v ant >/dev/null 2>&1 && command -v /usr/lib/jvm/java-7-openjdk-amd64/b
ant all &&\
mv ./bin/writelatex-git-bridge.jar /usr/local/sbin/ &&\
cp ./bin/wlgb /etc/init.d/ &&\
mkdir /var/log/wlgb &&\
mkdir /etc/wlgb &&\
mkdir -p /var/log/wlgb &&\
mkdir -p /etc/wlgb &&\
cp ./bin/config.json /etc/wlgb/ &&\
/usr/sbin/update-rc.d -f wlgb defaults

View file

@ -4,4 +4,5 @@ if [ "$(id -u)" != "0" ]; then
fi
rm -f /usr/local/sbin/writelatex-git-bridge.jar &&\
rm -f /etc/init.d/wlgb &&\
rm -rf /etc/wlgb
/usr/sbin/update-rc.d -f wlgb remove