maintancemode
This commit is contained in:
		@@ -8,8 +8,9 @@ FILENAME=$(echo $WORKINGDIR-$DATETIME.tar.gz)
 | 
			
		||||
 | 
			
		||||
mkdir /tmp/$WORKINGDIR
 | 
			
		||||
TMPDIR=$(echo /tmp/$WORKINGDIR)
 | 
			
		||||
 | 
			
		||||
$STOP_SERVICE
 | 
			
		||||
tar czf $TMPDIR/$FILENAME .
 | 
			
		||||
$START_SERVICE
 | 
			
		||||
cd /tmp/$WORKINGDIR
 | 
			
		||||
 | 
			
		||||
#check if file size over 1.9GB, Split by 1.8GB if so
 | 
			
		||||
 
 | 
			
		||||
@@ -6,4 +6,7 @@ TG_CHATID=''
 | 
			
		||||
### Change to a private hosted Telegram Bot API if compressed dir is over 50MB
 | 
			
		||||
TG_BOTAPI='https://api.telegram.org/bot'
 | 
			
		||||
 | 
			
		||||
# Compression
 | 
			
		||||
# Start and start service command, This could be a systemctl or screen or whatever else command
 | 
			
		||||
STOP_SERVICE='echo Mainanace mode on'
 | 
			
		||||
START_SERVICE='echo Mainanace mode off'
 | 
			
		||||
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user