mirror of
				https://github.com/Jonny007-MKD/OTR-DecodeAll
				synced 2025-10-30 15:35:37 +01:00 
			
		
		
		
	Move umask to config
This commit is contained in:
		
							parent
							
								
									68dc4f68ff
								
							
						
					
					
						commit
						a8de4e2bc2
					
				
					 2 changed files with 4 additions and 3 deletions
				
			
		
							
								
								
									
										4
									
								
								config
									
									
									
									
									
								
							
							
						
						
									
										4
									
								
								config
									
									
									
									
									
								
							|  | @ -18,6 +18,8 @@ function funcConfigPre {	# These values are set at the beginning of the script | |||
| 	# log levels:	0=off; 1=error; 2=warn; 3=info; 4 debug; 5 verbose debug | ||||
| 	logLevel=2														#level, which messages shall be written into the log. | ||||
| 	echoLevel=5														#level, which messages shall be written to stdout. | ||||
| 
 | ||||
| 	umask 0002														# Set permissions 775/664 per default | ||||
| } | ||||
| 
 | ||||
| 
 | ||||
|  | @ -37,7 +39,7 @@ function funcConfigPost { | |||
| 
 | ||||
| 
 | ||||
| 	cmdCut="/home/deluged/multicutmkv.sh"							# path to multicut | ||||
| 	cmdCutArgs="-o $tempDir" | ||||
| 	cmdCutArgs="-o $tempDir -t $tempDir" | ||||
| 
 | ||||
| 
 | ||||
| 
 | ||||
|  |  | |||
|  | @ -13,7 +13,6 @@ logLevel=0 | |||
| echoLevel=5 | ||||
| lastKodiCheck=0 | ||||
| cutAppendix="-cut.mkv" | ||||
| umask 0002				# Set permissions 775/664 per default | ||||
| 
 | ||||
| 
 | ||||
| PwD=$(readlink -e $0)	# Get the path to this script | ||||
|  | @ -487,7 +486,7 @@ function funcRemove { | |||
| 		if [ $remove -eq 2 ]; then			# force deleting | ||||
| 			funcRemoveFile "$pathAbsEncoded"; | ||||
| 		elif [ $remove -eq 1 ]; then		# test torrent client | ||||
| 			## TODO: Add more checks here, not only Deluge. Therefore we need a new config var | ||||
| 			## Add more checks here, not only Deluge | ||||
| 			if [ -n "$delugeDir" ] && [ -d "$delugeDir/state" ]; then	# If deluge config dir is defined | ||||
| 				if [ -n "`grep "$filename" "$delugeDir/state" -R --include=*.torrent`" ]; then | ||||
| 					funcLog 4 "Torrent still exists in Deluge" | ||||
|  |  | |||
		Loading…
	
		Reference in a new issue
	
	 Jonny007-MKD
						Jonny007-MKD