mirror of
				https://github.com/Wind4/vlmcsd.git
				synced 2025-11-04 06:49:28 +08:00 
			
		
		
		
	Update version and add uninstall.sh script
This commit is contained in:
		@@ -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 ...'
 | 
			
		||||
 
 | 
			
		||||
@@ -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 ...'
 | 
			
		||||
 
 | 
			
		||||
							
								
								
									
										15
									
								
								scripts/uninstall.sh
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										15
									
								
								scripts/uninstall.sh
									
									
									
									
									
										Normal 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.'
 | 
			
		||||
		Reference in New Issue
	
	Block a user