1
0
mirror of https://github.com/Wind4/vlmcsd.git synced 2024-11-28 21:11:03 +08:00

Update version and add uninstall.sh script

This commit is contained in:
Wind4 2018-10-28 16:02:32 +08:00
parent c5f482913f
commit a1f84aa354
3 changed files with 19 additions and 2 deletions

View File

@ -32,10 +32,11 @@ if [ ! -f '/usr/bin/wget' ]; then
fi fi
TMP_DIR=`mktemp -d` TMP_DIR=`mktemp -d`
GIT_TAGS=svn1112
cd ${TMP_DIR} cd ${TMP_DIR}
echo 'Downloading vlmcsd binaries ...' 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.' check_result $? 'Download vlmcsd failed.'
echo 'Downloading startup script ...' echo 'Downloading startup script ...'

View File

@ -38,10 +38,11 @@ if [ ! -f '/sbin/service' ]; then
fi fi
TMP_DIR=`mktemp -d` TMP_DIR=`mktemp -d`
GIT_TAG=svn1112
cd ${TMP_DIR} cd ${TMP_DIR}
echo 'Downloading vlmcsd ...' 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.' check_result $? 'Download vlmcsd failed.'
echo 'Downloading startup script ...' echo 'Downloading startup script ...'

15
scripts/uninstall.sh Normal file
View File

@ -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.'