Compare commits
3 Commits
e1b2d311d1
...
d982d53248
Author | SHA1 | Date | |
---|---|---|---|
![]() |
d982d53248 | ||
![]() |
029fada23a | ||
![]() |
19e70e8c84 |
@ -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
|
curl -fsSL "https://github.com/karlomikus/bar-assistant/archive/refs/tags/v${RELEASE_BARASSISTANT}.zip" -o barassistant.zip
|
||||||
unzip -q barassistant.zip
|
unzip -q barassistant.zip
|
||||||
mv /opt/bar-assistant-${RELEASE_BARASSISTANT}/ /opt/bar-assistant
|
mv /opt/bar-assistant-${RELEASE_BARASSISTANT}/ /opt/bar-assistant
|
||||||
cp /opt/bar-assistant-backup/.env /opt/bar-assistant/.env
|
cp -r /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/storage/bar-assistant /opt/bar-assistant/storage/bar-assistant
|
||||||
cd /opt/bar-assistant
|
cd /opt/bar-assistant
|
||||||
composer install
|
$STD composer install --no-interaction
|
||||||
$STD php artisan migrate --force
|
$STD php artisan migrate --force
|
||||||
$STD php artisan storage:link
|
$STD php artisan storage:link
|
||||||
$STD php artisan bar:setup-meilisearch
|
$STD php artisan bar:setup-meilisearch
|
||||||
@ -55,11 +55,12 @@ function update_script() {
|
|||||||
$STD php artisan config:cache
|
$STD php artisan config:cache
|
||||||
$STD php artisan route:cache
|
$STD php artisan route:cache
|
||||||
$STD php artisan event:cache
|
$STD php artisan event:cache
|
||||||
|
chown -R www-data:www-data /opt/bar-assistant
|
||||||
echo "${RELEASE_BARASSISTANT}" >/opt/${APP}_version.txt
|
echo "${RELEASE_BARASSISTANT}" >/opt/${APP}_version.txt
|
||||||
msg_ok "Updated $APP to v${RELEASE_BARASSISTANT}"
|
msg_ok "Updated $APP to v${RELEASE_BARASSISTANT}"
|
||||||
|
|
||||||
msg_info "Starting Service"
|
msg_info "Starting Service"
|
||||||
systemctl start service nginx
|
systemctl start nginx
|
||||||
msg_ok "Started Service"
|
msg_ok "Started Service"
|
||||||
|
|
||||||
msg_info "Cleaning up"
|
msg_info "Cleaning up"
|
||||||
@ -88,7 +89,7 @@ function update_script() {
|
|||||||
msg_ok "Updated $APP to v${RELEASE_SALTRIM}"
|
msg_ok "Updated $APP to v${RELEASE_SALTRIM}"
|
||||||
|
|
||||||
msg_info "Starting Service"
|
msg_info "Starting Service"
|
||||||
systemctl start service nginx
|
systemctl start nginx
|
||||||
msg_ok "Started Service"
|
msg_ok "Started Service"
|
||||||
|
|
||||||
msg_info "Cleaning up"
|
msg_info "Cleaning up"
|
||||||
|
Loading…
x
Reference in New Issue
Block a user