diff --git a/manifest.toml b/manifest.toml index f657ce4..ee4ee89 100644 --- a/manifest.toml +++ b/manifest.toml @@ -18,7 +18,7 @@ cpe = "cpe:2.3:a:simplex:simplex_chat" fund = "https://opencollective.com/simplex-chat" [integration] -yunohost = ">= 11.1.19" +yunohost = ">= 11.1.21" architectures = ["amd64", "arm64"] multi_instance = false ldap = "not_relevant" diff --git a/scripts/install b/scripts/install index 3acb56b..3764039 100755 --- a/scripts/install +++ b/scripts/install @@ -25,8 +25,8 @@ ynh_script_progression --message="Setting up source files..." --weight=1 ynh_setup_source --dest_dir="$install_dir" ynh_setup_source --dest_dir="$install_dir" --source_id="xftp" -mkdir -p /etc/opt/simplex-xftp /etc/opt/simplex #/var/opt/simplex-xftp /var/opt/simplex -chown -R $app:$app /etc/opt/simplex-xftp /etc/opt/simplex #/var/opt/simplex-xftp /var/opt/simplex +mkdir -p /etc/opt/simplex-xftp /etc/opt/simplex /var/opt/simplex-xftp /var/opt/simplex +chown -R $app:$app /etc/opt/simplex-xftp /etc/opt/simplex /var/opt/simplex-xftp /var/opt/simplex chmod -R o-rwx "$install_dir" chown -R $app:$app "$install_dir" diff --git a/scripts/upgrade b/scripts/upgrade index 3a67aba..2f0552e 100644 --- a/scripts/upgrade +++ b/scripts/upgrade @@ -73,7 +73,6 @@ if [ -z "/etc/opt/simplex-xftp/fingerprint" ]; then ynh_replace_string --match_string="port: 443" --replace_string="port: $port_xftp" --target_file="/etc/opt/simplex-xftp/file-server.ini" - chown -R $app:$app "/etc/opt/simplex" chown -R $app:$app "/etc/opt/simplex-xftp" fi