mirror of
				https://github.com/shokinn/.files.git
				synced 2025-11-04 12:38:10 +00:00 
			
		
		
		
	relocate files from .bin to .local/bin; remove dotdrop submodule; Update Installation process; remove pip, pylint and pyenv oh-my-zsh plugins; Update LICENSE;
This commit is contained in:
		
							parent
							
								
									4c529a3fb0
								
							
						
					
					
						commit
						53ff1bfffa
					
				
					 26 changed files with 68 additions and 145 deletions
				
			
		| 
						 | 
				
			
			@ -1,59 +0,0 @@
 | 
			
		|||
#!/usr/bin/env bash
 | 
			
		||||
 | 
			
		||||
#
 | 
			
		||||
# {{@@ header() @@}}
 | 
			
		||||
#
 | 
			
		||||
 | 
			
		||||
if [[ ${UID} -ne 0 ]]; then
 | 
			
		||||
	echo "You have to run this script as root!"
 | 
			
		||||
	exit 1
 | 
			
		||||
fi
 | 
			
		||||
 | 
			
		||||
options=( storage aws umount )
 | 
			
		||||
 | 
			
		||||
if [[ -z "${1}" ]]; then
 | 
			
		||||
	echo "Usage: ${0} <project>"
 | 
			
		||||
	echo "e.g.: ${0} c3"
 | 
			
		||||
	echo " "
 | 
			
		||||
	echo "Valid options:"
 | 
			
		||||
	for i in "${options[@]}"; do
 | 
			
		||||
		echo "    - ${i}"
 | 
			
		||||
	done
 | 
			
		||||
fi
 | 
			
		||||
 | 
			
		||||
fuse="/video/fuse"
 | 
			
		||||
video="/video/video"
 | 
			
		||||
tmp="/video/tmp"
 | 
			
		||||
 | 
			
		||||
if mount | grep ${fuse} > /dev/null; then
 | 
			
		||||
    umount ${fuse}
 | 
			
		||||
fi
 | 
			
		||||
 | 
			
		||||
if mount | grep ${video} > /dev/null; then
 | 
			
		||||
    umount ${video}
 | 
			
		||||
fi
 | 
			
		||||
 | 
			
		||||
if mount | grep ${tmp} > /dev/null; then
 | 
			
		||||
    umount ${tmp}
 | 
			
		||||
fi
 | 
			
		||||
 | 
			
		||||
case ${1} in
 | 
			
		||||
	storage)
 | 
			
		||||
		mount.cifs //storage.lan.c3voc.de/fuse ${fuse} -o rw,guest -o uid=phg
 | 
			
		||||
		mount.cifs //storage.lan.c3voc.de/video ${video} -o rw,guest -o uid=phg
 | 
			
		||||
		mount.cifs //storage.lan.c3voc.de/tmp ${tmp} -o rw,guest -o uid=phg
 | 
			
		||||
		;;
 | 
			
		||||
	aws)
 | 
			
		||||
		mount.cifs //aws.lan.c3voc.de/fuse ${fuse} -o rw,guest -o uid=phg
 | 
			
		||||
        mount.cifs //aws.lan.c3voc.de/video ${video} -o rw,guest -o uid=phg
 | 
			
		||||
		mount.cifs //aws.lan.c3voc.de/tmp ${tmp} -o rw,guest -o uid=phg
 | 
			
		||||
		;;
 | 
			
		||||
	umount)
 | 
			
		||||
		;;
 | 
			
		||||
	*)
 | 
			
		||||
		echo "Mountpoint does not exist."
 | 
			
		||||
		echo "Please use one of the following:"
 | 
			
		||||
		for i in "${options[@]}"; do
 | 
			
		||||
                	echo "    - ${i}"
 | 
			
		||||
        	done
 | 
			
		||||
esac
 | 
			
		||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue