mirror of
https://github.com/YunoHost-Apps/lemmy_ynh.git
synced 2024-09-03 19:36:09 +02:00
Update upgrade
This commit is contained in:
parent
2648c3737f
commit
ede495baf2
1 changed files with 11 additions and 1 deletions
|
@ -63,9 +63,9 @@ then
|
||||||
ynh_setup_source --dest_dir="$install_dir/build-lemmy/"
|
ynh_setup_source --dest_dir="$install_dir/build-lemmy/"
|
||||||
ynh_setup_source --dest_dir="$install_dir/build-lemmy-ui/"
|
ynh_setup_source --dest_dir="$install_dir/build-lemmy-ui/"
|
||||||
ynh_setup_source --dest_dir="$install_dir/lemmy-ui/lemmy-translations/" --source_id="lemmy-translations"
|
ynh_setup_source --dest_dir="$install_dir/lemmy-ui/lemmy-translations/" --source_id="lemmy-translations"
|
||||||
|
ynh_setup_source --dest_dir="$install_dir/build-pict-rs/"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
chmod 750 "$install_dir"
|
|
||||||
chmod -R o-rwx "$install_dir"
|
chmod -R o-rwx "$install_dir"
|
||||||
chown -R $app:$app "$install_dir"
|
chown -R $app:$app "$install_dir"
|
||||||
|
|
||||||
|
@ -119,6 +119,15 @@ then
|
||||||
mkdir -p "$install_dir/lemmy/"
|
mkdir -p "$install_dir/lemmy/"
|
||||||
mv -f "$install_dir/build-lemmy/output/app/lemmy" "$install_dir/lemmy/lemmy"
|
mv -f "$install_dir/build-lemmy/output/app/lemmy" "$install_dir/lemmy/lemmy"
|
||||||
ynh_secure_remove --file="$install_dir/build-lemmy"
|
ynh_secure_remove --file="$install_dir/build-lemmy"
|
||||||
|
|
||||||
|
# Install pict-rs
|
||||||
|
pushd $install_dir/build-pict-rs
|
||||||
|
./docker-image-extract asonix/pictrs:$PICTRS_VERSION
|
||||||
|
popd
|
||||||
|
mkdir -p "$install_dir/pict-rs/"
|
||||||
|
mv -f "$install_dir/build-pict-rs/output/usr/local/bin/pict-rs" "$install_dir/pict-rs/pict-rs"
|
||||||
|
ynh_secure_remove --file="$install_dir/build-pict-rs"
|
||||||
|
|
||||||
fi
|
fi
|
||||||
|
|
||||||
chmod 750 "$install_dir"
|
chmod 750 "$install_dir"
|
||||||
|
@ -151,6 +160,7 @@ ynh_script_progression --message="Upgrading systemd configuration..." --weight=1
|
||||||
# Create a dedicated systemd config
|
# Create a dedicated systemd config
|
||||||
ynh_add_systemd_config --service="$app" --template="lemmy.service"
|
ynh_add_systemd_config --service="$app" --template="lemmy.service"
|
||||||
ynh_add_systemd_config --service="$app-ui" --template="lemmy-ui.service"
|
ynh_add_systemd_config --service="$app-ui" --template="lemmy-ui.service"
|
||||||
|
ynh_add_systemd_config --service="$app-pict-rs" --template="pict-rs.service"
|
||||||
|
|
||||||
#=================================================
|
#=================================================
|
||||||
# GENERIC FINALIZATION
|
# GENERIC FINALIZATION
|
||||||
|
|
Loading…
Reference in a new issue