1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/ghost_ynh.git synced 2024-09-03 19:16:02 +02:00

Update upgrade

This commit is contained in:
Sean Billups 2023-08-17 17:36:45 -05:00 committed by GitHub
parent 4f8854328f
commit a80cdc5fd0
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -44,6 +44,24 @@ ynh_npm install --global npm@latest
ynh_npm install --global yarn
#=================================================
# FETCH LATEST GHOST AND PLACE IN /versions/
#=================================================
# Define the new version
NEW_VERSION="5.59.1"
# Download the latest Ghost release
wget -O ghost-$NEW_VERSION.zip https://github.com/TryGhost/Ghost/releases/download/$NEW_VERSION/Ghost-$NEW_VERSION.zip
# Move and rename the downloaded release
mv ghost-$NEW_VERSION.zip /var/www/ghost/ghost/versions/$NEW_VERSION.zip
# Unzip the downloaded release
unzip /var/www/ghost/ghost/versions/$NEW_VERSION.zip -d /var/www/ghost/ghost/versions/$NEW_VERSION
# Update the version in manifest.toml (adjust the path as needed)
sed -i "s/version = \".*\"/version = \"$NEW_VERSION\"/" ../manifest.toml
# UPGRADE
#=================================================