mirror of
https://github.com/YunoHost-Apps/facilmap_ynh.git
synced 2024-09-03 18:36:07 +02:00
Add toml schemas, replace tabs with spaces
This commit is contained in:
parent
95428a05ee
commit
8f805af885
5 changed files with 17 additions and 13 deletions
|
@ -1,3 +1,5 @@
|
|||
#:schema https://raw.githubusercontent.com/YunoHost/apps/master/schemas/manifest.v2.schema.json
|
||||
|
||||
packaging_format = 2
|
||||
|
||||
id = "facilmap"
|
||||
|
@ -80,7 +82,7 @@ ram.runtime = "50M"
|
|||
[resources]
|
||||
|
||||
[resources.ports]
|
||||
|
||||
|
||||
[resources.system_user]
|
||||
|
||||
[resources.install_dir]
|
||||
|
|
|
@ -42,7 +42,7 @@ mkdir -p $install_dir
|
|||
chown -R $app $install_dir
|
||||
|
||||
pushd $install_dir
|
||||
ynh_exec_as $app "$ynh_node_load_PATH" $ynh_npm install --prefix "$install_dir" -g facilmap-server@"$facilmap_version" 2>/dev/null
|
||||
ynh_exec_as $app "$ynh_node_load_PATH" $ynh_npm install --prefix "$install_dir" -g facilmap-server@"$facilmap_version" 2>/dev/null
|
||||
popd
|
||||
|
||||
chmod 750 "$install_dir"
|
||||
|
|
|
@ -18,8 +18,8 @@ source /usr/share/yunohost/helpers
|
|||
# Remove the service from the list of services known by YunoHost (added from `yunohost service add`)
|
||||
if ynh_exec_warn_less yunohost service status $app >/dev/null
|
||||
then
|
||||
ynh_script_progression --message="Removing $app service integration..." --weight=2
|
||||
yunohost service remove $app
|
||||
ynh_script_progression --message="Removing $app service integration..." --weight=2
|
||||
yunohost service remove $app
|
||||
fi
|
||||
|
||||
#=================================================
|
||||
|
|
|
@ -43,10 +43,10 @@ ynh_script_progression --message="Install $app..." --weight=20
|
|||
|
||||
if [ "$upgrade_type" == "UPGRADE_APP" ]
|
||||
then
|
||||
chown -R $app $install_dir
|
||||
pushd $install_dir
|
||||
ynh_exec_as $app "$ynh_node_load_PATH" $ynh_npm install --prefix "$install_dir" -g facilmap-server@"$facilmap_version" 2>/dev/null
|
||||
popd
|
||||
chown -R $app $install_dir
|
||||
pushd $install_dir
|
||||
ynh_exec_as $app "$ynh_node_load_PATH" $ynh_npm install --prefix "$install_dir" -g facilmap-server@"$facilmap_version" 2>/dev/null
|
||||
popd
|
||||
fi
|
||||
|
||||
#=================================================
|
||||
|
|
12
tests.toml
12
tests.toml
|
@ -1,3 +1,5 @@
|
|||
#:schema https://raw.githubusercontent.com/YunoHost/apps/master/schemas/tests.v1.schema.json
|
||||
|
||||
test_format = 1.0
|
||||
|
||||
[default]
|
||||
|
@ -6,8 +8,8 @@ test_format = 1.0
|
|||
# Default args to use for install
|
||||
# -------------------------------
|
||||
|
||||
args.ors_token = "test"
|
||||
args.mapbox_token = "test"
|
||||
args.maxmind_user_id = ""
|
||||
args.maxmind_license_key = ""
|
||||
args.user_agent = "FacilMap (https://facilmap.org/, webmaster@example.org)"
|
||||
args.ors_token = "test"
|
||||
args.mapbox_token = "test"
|
||||
args.maxmind_user_id = ""
|
||||
args.maxmind_license_key = ""
|
||||
args.user_agent = "FacilMap (https://facilmap.org/, webmaster@example.org)"
|
||||
|
|
Loading…
Add table
Reference in a new issue