Pump to pixelfed version v0.10.4
Adapting .env for activity pub settings
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
#!/bin/bash
|
||||
|
||||
toolName="pixelfed"
|
||||
toolTag="v0.10.2"
|
||||
toolTag="v0.10.4"
|
||||
toolDeps="composer jpegoptim php7.3-bcmath"
|
||||
toolPath="/var/www/pixelfed"
|
||||
|
||||
@@ -54,7 +54,7 @@ step_4() {
|
||||
endCheckEmpty mysqlDatabase "user name"
|
||||
|
||||
echo -en "Enter mysql user password: "
|
||||
read mysqlPass
|
||||
read -s mysqlPass
|
||||
endCheckEmpty mysqlPass "password"
|
||||
exe mysql -u root -e 'CREATE USER '"'"$mysqlUser"'"'@'"'"'localhost'"'"' IDENTIFIED BY '"'"$mysqlPass"'"';'
|
||||
saveReturn $?
|
||||
@@ -207,9 +207,21 @@ step_22() {
|
||||
exe php artisan user:create
|
||||
}
|
||||
|
||||
step_24_info() { echo "Recommended post update procedure"; }
|
||||
step_24_alias() { ALIAS="postupdate"; }
|
||||
step_24_info() { echo "Upgrade \"${toolPath}\" to supported tag $toolTag"; }
|
||||
step_24_alias() { ALIAS="upgrade"; }
|
||||
step_24() {
|
||||
cd $toolPath
|
||||
exe git pull
|
||||
saveReturn $?
|
||||
endReturn
|
||||
exe git checkout $toolTag
|
||||
saveReturn $?
|
||||
endReturn
|
||||
}
|
||||
|
||||
step_25_info() { echo "Recommended post update procedure"; }
|
||||
step_25_alias() { ALIAS="postupdate"; }
|
||||
step_25() {
|
||||
cd $toolPath
|
||||
exe composer install --no-ansi --no-interaction --no-progress --no-scripts --optimize-autoloader
|
||||
exe php artisan config:cache
|
||||
@@ -217,6 +229,7 @@ step_24() {
|
||||
exe php artisan migrate --force
|
||||
exe php artisan horizon:purge
|
||||
exe php artisan storage:link
|
||||
exe service pixelfed restart
|
||||
}
|
||||
|
||||
# Sequence Revision
|
||||
|
Reference in New Issue
Block a user