Used sequpgrade.sh to upgrade existing seqs

This commit is contained in:
2022-05-29 20:58:23 +02:00
parent 10ee4198f0
commit 6214493c18
57 changed files with 802 additions and 806 deletions

View File

@@ -6,7 +6,7 @@ toolDeps="composer jpegoptim php7.3-bcmath php-imagick"
toolPath="/var/www/pixelfed"
step_1_info() { echo "Updating apt"; }
step_1_alias() { ALIAS="install"; }
step_1_alias() { echo "install"; }
step_1() {
exe apt update
}
@@ -126,7 +126,7 @@ Environment=
WantedBy=multi-user.target"
step_8_info() { echo "Create scheduler cron job"; }
step_8_alias() { ALIAS="scheduler"; }
step_8_alias() { echo "scheduler"; }
step_8() {
addConf -s "$schedulerCmd" "$schedulerCron"
}
@@ -197,7 +197,7 @@ location ~ /\\.(?!well-known).* {
}"
step_20_info() { echo "Reload configuration (.env)"; }
step_20_alias() { ALIAS="newenv"; }
step_20_alias() { echo "newenv"; }
step_20() {
exe cd $toolPath
exe php artisan config:cache
@@ -205,17 +205,17 @@ step_20() {
}
step_22_info() { echo "Create new user"; }
step_22_alias() { ALIAS="createuser"; }
step_22_alias() { echo "createuser"; }
step_22() {
exe cd $toolPath
exe php artisan user:create
}
step_24_info() { echo "Checkout to dev branch. Losing local changes!"; }
step_24_alias() { ALIAS="forcedev"; }
step_24_alias() { echo "forcedev"; }
step_24() {
exe read -p "Are you sure: y/[n]? " answer
if [ $DRY -eq 0 ] ; then
if ! dry ; then
case $answer in
[yY])
;;
@@ -232,7 +232,7 @@ step_24() {
}
step_100_info() { echo "Upgrade \"${toolPath}\" to supported tag $toolTag"; }
step_100_alias() { ALIAS="upgrade"; }
step_100_alias() { echo "upgrade"; }
step_100() {
exe cd $toolPath
exe git pull origin $toolTag
@@ -242,7 +242,7 @@ step_100() {
}
step_101_info() { echo "Recommended post update procedure"; }
step_101_alias() { ALIAS="postupdate"; }
step_101_alias() { echo "postupdate"; }
step_101() {
exe cd $toolPath
exe composer install
@@ -261,7 +261,7 @@ step_101() {
# Src: https://docs.pixelfed.org/running-pixelfed/troubleshooting.html
step_102_info() { echo "Fix if horizon services is running but not showing the administration interface"; }
step_102_alias() { ALIAS="fixhorizon"; }
step_102_alias() { echo "fixhorizon"; }
step_102() {
exe cd $toolPath
exe php artisan package:discover
@@ -272,7 +272,7 @@ step_102() {
}
# Sequence Revision
VERSION_SEQREV=7
readonly sqr_minVersion=16
# Path to sequencer
. sequencer.sh