mirror of
https://github.com/YunoHost-Apps/invidious_ynh.git
synced 2024-09-03 19:15:55 +02:00
4bf5ddcd7e
* Thumbnails (#133) * Update manifest.toml * Update manifest.toml * Update manifest.toml * Auto-update README --------- Co-authored-by: yunohost-bot <yunohost@yunohost.org> * fix * Auto-update README * Update manifest.toml * Only build invidious once per install (#136) * Thumbnails (#133) (#134) * Thumbnails (#133) * Update manifest.toml * Update manifest.toml * Update manifest.toml * Auto-update README --------- Co-authored-by: yunohost-bot <yunohost@yunohost.org> * fix * Auto-update README --------- Co-authored-by: yunohost-bot <yunohost@yunohost.org> * Only build invidious once per install * Update manifest.toml --------- Co-authored-by: Tagada <36127788+Tagadda@users.noreply.github.com> Co-authored-by: eric_G <46165813+ericgaspar@users.noreply.github.com> Co-authored-by: yunohost-bot <yunohost@yunohost.org> * Update manifest.toml * fix * Auto-update README * Update manifest.toml * Auto-update README * Update manifest.toml * cleaning * Auto-update README * update * Auto-update README * upgrade * Auto-update README * fix * Auto-update README * update to upstream * Auto-update README * Update configuration link (#145) * Testing (#143) * Thumbnails (#133) * Update manifest.toml * Update manifest.toml * Update manifest.toml * Auto-update README --------- Co-authored-by: yunohost-bot <yunohost@yunohost.org> * fix * Auto-update README * Update manifest.toml * Only build invidious once per install (#136) * Thumbnails (#133) (#134) * Thumbnails (#133) * Update manifest.toml * Update manifest.toml * Update manifest.toml * Auto-update README --------- Co-authored-by: yunohost-bot <yunohost@yunohost.org> * fix * Auto-update README --------- Co-authored-by: yunohost-bot <yunohost@yunohost.org> * Only build invidious once per install * Update manifest.toml --------- Co-authored-by: Tagada <36127788+Tagadda@users.noreply.github.com> Co-authored-by: eric_G <46165813+ericgaspar@users.noreply.github.com> Co-authored-by: yunohost-bot <yunohost@yunohost.org> * Update manifest.toml * fix * Auto-update README * Update manifest.toml * Auto-update README * Update manifest.toml * cleaning * Auto-update README * update * Auto-update README * upgrade * Auto-update README * fix * Auto-update README * update to upstream * Auto-update README --------- Co-authored-by: yunohost-bot <yunohost@yunohost.org> Co-authored-by: selfhoster1312 <121760708+selfhoster1312@users.noreply.github.com> Co-authored-by: Tagada <36127788+Tagadda@users.noreply.github.com> * Update configuration link * Update configuration link fr --------- Co-authored-by: eric_G <46165813+ericgaspar@users.noreply.github.com> Co-authored-by: yunohost-bot <yunohost@yunohost.org> Co-authored-by: selfhoster1312 <121760708+selfhoster1312@users.noreply.github.com> Co-authored-by: Tagada <36127788+Tagadda@users.noreply.github.com> * 2 new settings in the config panel (#144) * Testing (#143) * Thumbnails (#133) * Update manifest.toml * Update manifest.toml * Update manifest.toml * Auto-update README --------- Co-authored-by: yunohost-bot <yunohost@yunohost.org> * fix * Auto-update README * Update manifest.toml * Only build invidious once per install (#136) * Thumbnails (#133) (#134) * Thumbnails (#133) * Update manifest.toml * Update manifest.toml * Update manifest.toml * Auto-update README --------- Co-authored-by: yunohost-bot <yunohost@yunohost.org> * fix * Auto-update README --------- Co-authored-by: yunohost-bot <yunohost@yunohost.org> * Only build invidious once per install * Update manifest.toml --------- Co-authored-by: Tagada <36127788+Tagadda@users.noreply.github.com> Co-authored-by: eric_G <46165813+ericgaspar@users.noreply.github.com> Co-authored-by: yunohost-bot <yunohost@yunohost.org> * Update manifest.toml * fix * Auto-update README * Update manifest.toml * Auto-update README * Update manifest.toml * cleaning * Auto-update README * update * Auto-update README * upgrade * Auto-update README * fix * Auto-update README * update to upstream * Auto-update README --------- Co-authored-by: yunohost-bot <yunohost@yunohost.org> Co-authored-by: selfhoster1312 <121760708+selfhoster1312@users.noreply.github.com> Co-authored-by: Tagada <36127788+Tagadda@users.noreply.github.com> * implement new parameters * add new parameters * fix shellcheck SC2086 * typo * sigh an omission * add pre upgrade message about the 2 new settings * simplify ynh_add_config templates paths * bad copy paste :"3 * add how to find the config panel * add a note about the fact we can't use resources.sources instead of git * oupsi ^^" --------- Co-authored-by: eric_G <46165813+ericgaspar@users.noreply.github.com> Co-authored-by: yunohost-bot <yunohost@yunohost.org> Co-authored-by: selfhoster1312 <121760708+selfhoster1312@users.noreply.github.com> Co-authored-by: Tagada <36127788+Tagadda@users.noreply.github.com> --------- Co-authored-by: yunohost-bot <yunohost@yunohost.org> Co-authored-by: selfhoster1312 <121760708+selfhoster1312@users.noreply.github.com> Co-authored-by: Tagada <36127788+Tagadda@users.noreply.github.com> Co-authored-by: Dallo <131776117+D4llo@users.noreply.github.com> Co-authored-by: OniriCorpe <oniricorpe@disroot.org>
51 lines
1.8 KiB
Bash
51 lines
1.8 KiB
Bash
#!/bin/bash
|
|
|
|
#=================================================
|
|
# GENERIC STARTING
|
|
#=================================================
|
|
# IMPORT GENERIC HELPERS
|
|
#=================================================
|
|
|
|
source _common.sh
|
|
source /usr/share/yunohost/helpers
|
|
|
|
#=================================================
|
|
# STANDARD MODIFICATIONS
|
|
#=================================================
|
|
# STOP SYSTEMD SERVICE
|
|
#=================================================
|
|
ynh_script_progression --message="Stopping a systemd service..." --weight=1
|
|
|
|
ynh_systemd_action --service_name="$app" --action="stop" --log_path="systemd"
|
|
|
|
#=================================================
|
|
# MODIFY URL IN NGINX CONF
|
|
#=================================================
|
|
ynh_script_progression --message="Updating NGINX web server configuration..." --weight=2
|
|
|
|
ynh_change_url_nginx_config
|
|
|
|
#=================================================
|
|
# MODIFY A CONFIG FILE
|
|
#=================================================
|
|
ynh_script_progression --message="Modifying a config file..." --weight=1
|
|
|
|
ynh_add_config --template="config.yml" --destination="$install_dir/config/config.yml"
|
|
|
|
chmod 600 "$install_dir/config/config.yml"
|
|
chown "$app:$app" "$install_dir/config/config.yml"
|
|
|
|
#=================================================
|
|
# GENERIC FINALISATION
|
|
#=================================================
|
|
# START SYSTEMD SERVICE
|
|
#=================================================
|
|
ynh_script_progression --message="Starting a systemd service..." --weight=3
|
|
|
|
ynh_systemd_action --service_name="$app" --action="start" --log_path="systemd"
|
|
|
|
#=================================================
|
|
# END OF SCRIPT
|
|
#=================================================
|
|
|
|
ynh_script_progression --message="Change of URL completed for $app" --last
|