Skip to content

Commit da5b003

Browse files
authored
Snipe-IT: Remove composer update & add no interaction for install (#3256)
1 parent a0eeeff commit da5b003

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

ct/snipeit.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ function update_script() {
4949
cp -r /opt/snipe-it-backup/storage/private_uploads /opt/snipe-it/storage/private_uploads
5050
cd /opt/snipe-it/
5151
export COMPOSER_ALLOW_SUPERUSER=1
52-
$STD composer install --no-dev --prefer-source
52+
$STD composer install --no-dev --optimize-autoloader --no-interaction
5353
$STD composer dump-autoload
5454
$STD php artisan migrate --force
5555
$STD php artisan config:clear

install/snipeit-install.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -58,8 +58,8 @@ sed -i -e "s|^APP_URL=.*|APP_URL=http://$IPADDRESS|" \
5858
chown -R www-data: /opt/snipe-it
5959
chmod -R 755 /opt/snipe-it
6060
export COMPOSER_ALLOW_SUPERUSER=1
61-
$STD composer update --no-plugins --no-scripts
62-
$STD composer install --no-dev
61+
#$STD composer update --no-plugins --no-scripts
62+
$STD composer install --no-dev --optimize-autoloader --no-interaction
6363
$STD php artisan key:generate --force
6464
echo "${RELEASE}" >"/opt/${APPLICATION}_version.txt"
6565
msg_ok "Installed SnipeIT"

0 commit comments

Comments
 (0)