1
0
mirror of https://github.com/community-scripts/ProxmoxVE.git synced 2025-04-20 13:48:06 +00:00

Snipe-IT: Remove composer update & add no interaction for install (#3256)

This commit is contained in:
CanbiZ 2025-03-19 09:15:53 +01:00 committed by GitHub
parent a0eeeff67d
commit da5b00359d
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 3 additions and 3 deletions

View File

@ -49,7 +49,7 @@ function update_script() {
cp -r /opt/snipe-it-backup/storage/private_uploads /opt/snipe-it/storage/private_uploads cp -r /opt/snipe-it-backup/storage/private_uploads /opt/snipe-it/storage/private_uploads
cd /opt/snipe-it/ cd /opt/snipe-it/
export COMPOSER_ALLOW_SUPERUSER=1 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 composer dump-autoload
$STD php artisan migrate --force $STD php artisan migrate --force
$STD php artisan config:clear $STD php artisan config:clear

View File

@ -58,8 +58,8 @@ sed -i -e "s|^APP_URL=.*|APP_URL=http://$IPADDRESS|" \
chown -R www-data: /opt/snipe-it chown -R www-data: /opt/snipe-it
chmod -R 755 /opt/snipe-it chmod -R 755 /opt/snipe-it
export COMPOSER_ALLOW_SUPERUSER=1 export COMPOSER_ALLOW_SUPERUSER=1
$STD composer update --no-plugins --no-scripts #$STD composer update --no-plugins --no-scripts
$STD composer install --no-dev $STD composer install --no-dev --optimize-autoloader --no-interaction
$STD php artisan key:generate --force $STD php artisan key:generate --force
echo "${RELEASE}" >"/opt/${APPLICATION}_version.txt" echo "${RELEASE}" >"/opt/${APPLICATION}_version.txt"
msg_ok "Installed SnipeIT" msg_ok "Installed SnipeIT"