mirror of
				https://github.com/community-scripts/ProxmoxVE.git
				synced 2025-11-04 10:22:50 +00:00 
			
		
		
		
	Update kimai.sh
This commit is contained in:
		
							
								
								
									
										13
									
								
								ct/kimai.sh
									
									
									
									
									
								
							
							
						
						
									
										13
									
								
								ct/kimai.sh
									
									
									
									
									
								
							@@ -54,11 +54,6 @@ function update_script() {
 | 
			
		||||
        cd /opt/kimai
 | 
			
		||||
        $STD composer install --no-dev --optimize-autoloader
 | 
			
		||||
        $STD bin/console kimai:update
 | 
			
		||||
        chown -R :www-data .
 | 
			
		||||
        chmod -R g+r .
 | 
			
		||||
        chmod -R g+rw var/
 | 
			
		||||
        chmod -R 777 /opt/kimai/*
 | 
			
		||||
        chown -R www-data:www-data /opt/kimai
 | 
			
		||||
        echo "${RELEASE}" >/opt/${APP}_version.txt
 | 
			
		||||
        msg_ok "Updated ${APP} to ${RELEASE}"
 | 
			
		||||
 | 
			
		||||
@@ -66,6 +61,14 @@ function update_script() {
 | 
			
		||||
        systemctl start apache2
 | 
			
		||||
        msg_ok "Started Apache2"
 | 
			
		||||
 | 
			
		||||
        msg_info "Setup Permissions"
 | 
			
		||||
        chown -R :www-data /opt/*
 | 
			
		||||
        chmod -R g+r /opt/*
 | 
			
		||||
        chmod -R g+rw /opt/*
 | 
			
		||||
        chown -R www-data:www-data /opt/*
 | 
			
		||||
        chmod -R 777 /opt/*
 | 
			
		||||
        msg_ok "Setup Permissions"
 | 
			
		||||
 | 
			
		||||
        msg_info "Cleaning Up"
 | 
			
		||||
        rm -rf ${RELEASE}.zip
 | 
			
		||||
        rm -rf "$BACKUP_DIR"
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user