mirror of
				https://github.com/community-scripts/ProxmoxVE.git
				synced 2025-11-04 02:12:49 +00:00 
			
		
		
		
	Snipe-IT: Remove composer update & add no interaction for install (#3256)
This commit is contained in:
		@@ -49,7 +49,7 @@ function update_script() {
 | 
			
		||||
    cp -r /opt/snipe-it-backup/storage/private_uploads /opt/snipe-it/storage/private_uploads
 | 
			
		||||
    cd /opt/snipe-it/
 | 
			
		||||
    export COMPOSER_ALLOW_SUPERUSER=1
 | 
			
		||||
    $STD composer install --no-dev --prefer-source
 | 
			
		||||
    $STD composer install --no-dev --optimize-autoloader --no-interaction
 | 
			
		||||
    $STD composer dump-autoload
 | 
			
		||||
    $STD php artisan migrate --force
 | 
			
		||||
    $STD php artisan config:clear
 | 
			
		||||
 
 | 
			
		||||
@@ -58,8 +58,8 @@ sed -i -e "s|^APP_URL=.*|APP_URL=http://$IPADDRESS|" \
 | 
			
		||||
chown -R www-data: /opt/snipe-it
 | 
			
		||||
chmod -R 755 /opt/snipe-it
 | 
			
		||||
export COMPOSER_ALLOW_SUPERUSER=1
 | 
			
		||||
$STD composer update --no-plugins --no-scripts
 | 
			
		||||
$STD composer install --no-dev
 | 
			
		||||
#$STD composer update --no-plugins --no-scripts
 | 
			
		||||
$STD composer install --no-dev --optimize-autoloader --no-interaction
 | 
			
		||||
$STD php artisan key:generate --force
 | 
			
		||||
echo "${RELEASE}" >"/opt/${APPLICATION}_version.txt"
 | 
			
		||||
msg_ok "Installed SnipeIT"
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user