Compare commits

...

3 Commits

Author SHA1 Message Date
Bas van den Berg
d982d53248 Update bar-assistant.sh 2025-05-25 20:25:46 +02:00
Bas van den Berg
029fada23a Merge branch 'main' of https://github.com/community-scripts/ProxmoxVED 2025-05-25 20:25:27 +02:00
Bas van den Berg
19e70e8c84 fix updatepath 2025-05-25 20:24:41 +02:00

View File

@ -44,10 +44,10 @@ function update_script() {
curl -fsSL "https://github.com/karlomikus/bar-assistant/archive/refs/tags/v${RELEASE_BARASSISTANT}.zip" -o barassistant.zip
unzip -q barassistant.zip
mv /opt/bar-assistant-${RELEASE_BARASSISTANT}/ /opt/bar-assistant
cp /opt/bar-assistant-backup/.env /opt/bar-assistant/.env
cp /opt/bar-assistant-backup/storage/bar-assistant /opt/bar-assistant/storage/bar-assistant
cp -r /opt/bar-assistant-backup/.env /opt/bar-assistant/.env
cp -r /opt/bar-assistant-backup/storage/bar-assistant /opt/bar-assistant/storage/bar-assistant
cd /opt/bar-assistant
composer install
$STD composer install --no-interaction
$STD php artisan migrate --force
$STD php artisan storage:link
$STD php artisan bar:setup-meilisearch
@ -55,11 +55,12 @@ function update_script() {
$STD php artisan config:cache
$STD php artisan route:cache
$STD php artisan event:cache
chown -R www-data:www-data /opt/bar-assistant
echo "${RELEASE_BARASSISTANT}" >/opt/${APP}_version.txt
msg_ok "Updated $APP to v${RELEASE_BARASSISTANT}"
msg_info "Starting Service"
systemctl start service nginx
systemctl start nginx
msg_ok "Started Service"
msg_info "Cleaning up"
@ -88,7 +89,7 @@ function update_script() {
msg_ok "Updated $APP to v${RELEASE_SALTRIM}"
msg_info "Starting Service"
systemctl start service nginx
systemctl start nginx
msg_ok "Started Service"
msg_info "Cleaning up"