1
0
Fork 0
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:
Salamandar 2024-01-27 13:17:32 +01:00
parent 95428a05ee
commit 8f805af885
5 changed files with 17 additions and 13 deletions

View file

@ -1,3 +1,5 @@
#:schema https://raw.githubusercontent.com/YunoHost/apps/master/schemas/manifest.v2.schema.json
packaging_format = 2 packaging_format = 2
id = "facilmap" id = "facilmap"
@ -80,7 +82,7 @@ ram.runtime = "50M"
[resources] [resources]
[resources.ports] [resources.ports]
[resources.system_user] [resources.system_user]
[resources.install_dir] [resources.install_dir]

View file

@ -42,7 +42,7 @@ mkdir -p $install_dir
chown -R $app $install_dir chown -R $app $install_dir
pushd $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 popd
chmod 750 "$install_dir" chmod 750 "$install_dir"

View file

@ -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`) # 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 if ynh_exec_warn_less yunohost service status $app >/dev/null
then then
ynh_script_progression --message="Removing $app service integration..." --weight=2 ynh_script_progression --message="Removing $app service integration..." --weight=2
yunohost service remove $app yunohost service remove $app
fi fi
#================================================= #=================================================

View file

@ -43,10 +43,10 @@ ynh_script_progression --message="Install $app..." --weight=20
if [ "$upgrade_type" == "UPGRADE_APP" ] if [ "$upgrade_type" == "UPGRADE_APP" ]
then then
chown -R $app $install_dir chown -R $app $install_dir
pushd $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 popd
fi fi
#================================================= #=================================================

View file

@ -1,3 +1,5 @@
#:schema https://raw.githubusercontent.com/YunoHost/apps/master/schemas/tests.v1.schema.json
test_format = 1.0 test_format = 1.0
[default] [default]
@ -6,8 +8,8 @@ test_format = 1.0
# Default args to use for install # Default args to use for install
# ------------------------------- # -------------------------------
args.ors_token = "test" args.ors_token = "test"
args.mapbox_token = "test" args.mapbox_token = "test"
args.maxmind_user_id = "" args.maxmind_user_id = ""
args.maxmind_license_key = "" args.maxmind_license_key = ""
args.user_agent = "FacilMap (https://facilmap.org/, webmaster@example.org)" args.user_agent = "FacilMap (https://facilmap.org/, webmaster@example.org)"