mirror of
https://github.com/YunoHost-Apps/nitter_ynh.git
synced 2024-09-03 19:46:24 +02:00
remove theme from install
This commit is contained in:
parent
2b5a61d1ef
commit
30b61dc02e
3 changed files with 13 additions and 9 deletions
|
@ -43,15 +43,6 @@ ram.runtime = "50M"
|
||||||
type = "string"
|
type = "string"
|
||||||
default = "Nitter"
|
default = "Nitter"
|
||||||
|
|
||||||
[install.theme]
|
|
||||||
ask.en = "Choose a default theme for this instance"
|
|
||||||
ask.fr = "Choisissez un thème par défaut pour cette instance"
|
|
||||||
help.en = "Users can override this setting"
|
|
||||||
help.fr = "Les utilisateurs peuvent modifier ce paramétre"
|
|
||||||
type = "string"
|
|
||||||
default = "Auto"
|
|
||||||
choices = ["Auto", "Black", "Mastodon", "Nitter", "Pleroma", "Twitter", "Twitter dark"]
|
|
||||||
|
|
||||||
[install.replace_youtube]
|
[install.replace_youtube]
|
||||||
ask.en = "Replace YouTube links with an Invidious instance"
|
ask.en = "Replace YouTube links with an Invidious instance"
|
||||||
ask.fr = "Remplacer les liens YouTube avec une instance Invidious"
|
ask.fr = "Remplacer les liens YouTube avec une instance Invidious"
|
||||||
|
|
|
@ -14,7 +14,9 @@ source /usr/share/yunohost/helpers
|
||||||
#=================================================
|
#=================================================
|
||||||
|
|
||||||
hmac_key=$(ynh_string_random --length=64)
|
hmac_key=$(ynh_string_random --length=64)
|
||||||
|
theme="Auto"
|
||||||
ynh_app_setting_set --app=$app --key=hmac_key --value=$hmac_key
|
ynh_app_setting_set --app=$app --key=hmac_key --value=$hmac_key
|
||||||
|
ynh_app_setting_set --app=$app --key=theme --value=$theme
|
||||||
|
|
||||||
#=================================================
|
#=================================================
|
||||||
# DOWNLOAD, CHECK AND UNPACK SOURCE
|
# DOWNLOAD, CHECK AND UNPACK SOURCE
|
||||||
|
|
|
@ -15,6 +15,17 @@ source /usr/share/yunohost/helpers
|
||||||
|
|
||||||
upgrade_type=$(ynh_check_app_version_changed)
|
upgrade_type=$(ynh_check_app_version_changed)
|
||||||
|
|
||||||
|
#=================================================
|
||||||
|
# ENSURE DOWNWARD COMPATIBILITY
|
||||||
|
#=================================================
|
||||||
|
ynh_script_progression --message="Ensuring downward compatibility..." --weight=1
|
||||||
|
|
||||||
|
# If theme doesn't exist, create it
|
||||||
|
if [ -z "${theme:-}" ]; then
|
||||||
|
theme="Auto"
|
||||||
|
ynh_app_setting_set --app=$app --key=theme --value=$theme
|
||||||
|
fi
|
||||||
|
|
||||||
#=================================================
|
#=================================================
|
||||||
# STANDARD UPGRADE STEPS
|
# STANDARD UPGRADE STEPS
|
||||||
#=================================================
|
#=================================================
|
||||||
|
|
Loading…
Add table
Reference in a new issue