mirror of
https://github.com/YunoHost-Apps/silverbullet_ynh.git
synced 2024-09-03 20:26:18 +02:00
Merge pull request #2 from YunoHost-Apps/fix-first-version
Fix first version
This commit is contained in:
commit
99d805cb58
5 changed files with 12 additions and 9 deletions
|
@ -35,7 +35,7 @@ ram.runtime = "250M"
|
|||
# this is a generic question - ask strings are automatically handled by YunoHost's core
|
||||
type = "domain"
|
||||
|
||||
[install.init_main_permission]
|
||||
[install.admin]
|
||||
help.en = "Choose the user who can access to silverbullet"
|
||||
help.fr = "Choisissez l'utilisateur pouvant accéder à silverbullet"
|
||||
type = "user"
|
||||
|
@ -57,10 +57,10 @@ ram.runtime = "250M"
|
|||
[resources.install_dir]
|
||||
|
||||
[resources.data_dir]
|
||||
subdirs = [ "notes" ]
|
||||
|
||||
[resources.permissions]
|
||||
main.url = "/"
|
||||
main.permissions = "visitors" # The app is protected by a user/password prompt
|
||||
|
||||
[resources.ports]
|
||||
main.default = 3000
|
||||
|
|
|
@ -35,8 +35,10 @@ ynh_add_config --template="custom.env" --destination="$data_dir/custom.env"
|
|||
chmod 600 "$data_dir/custom.env"
|
||||
chown "$app:$app" "$data_dir/custom.env"
|
||||
|
||||
# Create notes subdir
|
||||
install -d -m 700 -o $app -g $app $data_dir/notes
|
||||
#=================================================
|
||||
# SET PERMISSION FOR THE USER
|
||||
#=================================================
|
||||
ynh_permission_update --permission="main" --add="$admin"
|
||||
|
||||
#=================================================
|
||||
# SYSTEM CONFIGURATION
|
||||
|
|
|
@ -41,6 +41,8 @@ systemctl enable "$app.service" --quiet
|
|||
|
||||
yunohost service add "$app" --description="The hacker's notebook"
|
||||
|
||||
ynh_permission_update --permission="main" --add="$admin"
|
||||
|
||||
#=================================================
|
||||
# RELOAD NGINX AND PHP-FPM OR THE APP SERVICE
|
||||
#=================================================
|
||||
|
|
|
@ -40,8 +40,10 @@ ynh_add_config --template="custom.env" --destination="$data_dir/custom.env"
|
|||
chmod 600 "$data_dir/custom.env"
|
||||
chown "$app:$app" "$data_dir/custom.env"
|
||||
|
||||
# Create notes subdir
|
||||
install -d -m 700 -o $app -g $app $data_dir/notes
|
||||
#=================================================
|
||||
# SET PERMISSION FOR THE USER
|
||||
#=================================================
|
||||
ynh_permission_update --permission="main" --add="$admin"
|
||||
|
||||
#=================================================
|
||||
# REAPPLY SYSTEM CONFIGURATIONS
|
||||
|
|
|
@ -4,9 +4,6 @@ test_format = 1.0
|
|||
|
||||
[default]
|
||||
|
||||
exclude = ["install.subdir"]
|
||||
args.init_main_permission = "package_checker"
|
||||
|
||||
# -------------------------------
|
||||
# Commits to test upgrade from
|
||||
# -------------------------------
|
||||
|
|
Loading…
Reference in a new issue