diff --git a/scripts/install-debian.sh b/scripts/install-debian.sh index 55bc015..3fac3d2 100644 --- a/scripts/install-debian.sh +++ b/scripts/install-debian.sh @@ -32,10 +32,11 @@ if [ ! -f '/usr/bin/wget' ]; then fi TMP_DIR=`mktemp -d` +GIT_TAGS=svn1112 cd ${TMP_DIR} echo 'Downloading vlmcsd binaries ...' -wget -q https://github.com/Wind4/vlmcsd/releases/download/svn1108/binaries.tar.gz -O binaries.tar.gz +wget -q https://github.com/Wind4/vlmcsd/releases/download/${GIT_TAGS}/binaries.tar.gz -O binaries.tar.gz check_result $? 'Download vlmcsd failed.' echo 'Downloading startup script ...' diff --git a/scripts/install-rhel.sh b/scripts/install-rhel.sh index 76fba63..9ca66e9 100644 --- a/scripts/install-rhel.sh +++ b/scripts/install-rhel.sh @@ -38,10 +38,11 @@ if [ ! -f '/sbin/service' ]; then fi TMP_DIR=`mktemp -d` +GIT_TAG=svn1112 cd ${TMP_DIR} echo 'Downloading vlmcsd ...' -wget -q https://github.com/Wind4/vlmcsd/releases/download/svn1108/binaries.tar.gz -O binaries.tar.gz +wget -q https://github.com/Wind4/vlmcsd/releases/download/${GIT_TAG}/binaries.tar.gz -O binaries.tar.gz check_result $? 'Download vlmcsd failed.' echo 'Downloading startup script ...' diff --git a/scripts/uninstall.sh b/scripts/uninstall.sh new file mode 100644 index 0000000..6f31592 --- /dev/null +++ b/scripts/uninstall.sh @@ -0,0 +1,15 @@ +#!/bin/bash +# +# Install a VLMCSD service for CentOS/RedHat +# +# Author: Wind4 (puxiaping@gmail.com) +# Date: October 28, 2018 +# + +echo 'Remove the /etc/init.d/vlmcsd' +rm -f /etc/init.d/vlmcsd + +echo 'Remove the /usr/bin/vlmcsd' +rm -f /usr/bin/vlmcsd + +echo 'Uninstall successfully.' \ No newline at end of file