doku
This commit is contained in:
		
							
								
								
									
										20
									
								
								doku/inst
									
									
									
									
									
										Executable file
									
								
							
							
						
						
									
										20
									
								
								doku/inst
									
									
									
									
									
										Executable file
									
								
							@@ -0,0 +1,20 @@
 | 
			
		||||
#!/bin/bash
 | 
			
		||||
DEST=/var/www/html/doku 
 | 
			
		||||
#creation chemin doku
 | 
			
		||||
apt install -y apache2 php php-mbstring php-gd php-xml
 | 
			
		||||
cd /root
 | 
			
		||||
[ -r dokuwiki-stable.tgz ] || wget http://depl/store/dokuwiki-stable.tgz
 | 
			
		||||
#on regarde si le dokuwiki est present, sinon on l'install
 | 
			
		||||
if [ $? != 0 ]; then
 | 
			
		||||
	echo "$0 : erreurwget" 1>&2
 | 
			
		||||
	exit 1
 | 
			
		||||
fi
 | 
			
		||||
tar xvfz dokuwiki-stable.tgz
 | 
			
		||||
[ -d "${DEST}" ] || mkdir "${DEST}"
 | 
			
		||||
#on regarde si le chemin DEST est creer, sinon on le fait
 | 
			
		||||
cp -a dokuwiki-2020-07-29/* "${DEST}"
 | 
			
		||||
cd "${DEST}"
 | 
			
		||||
chown -R root:root .
 | 
			
		||||
chmod -R 755 .
 | 
			
		||||
chown -R www-data:www-data data lib conf .
 | 
			
		||||
exit 0
 | 
			
		||||
		Reference in New Issue
	
	Block a user