yunohost_demo/upgrade.d/Constant_upgrade/Disable_custom_apps

10 lines
485 B
Text
Raw Normal View History

2017-06-05 16:30:42 +02:00
#!/bin/bash
# Récupère le dossier du script
if [ "${0:0:1}" == "/" ]; then script_dir="$(dirname "$0")"; else script_dir="$PWD/$(dirname "$0" | cut -d '.' -f2)"; fi
2022-10-13 05:46:46 +02:00
MACHINE=$1 # Nom du conteneur
2017-06-05 16:30:42 +02:00
2022-10-08 17:33:42 +02:00
# Désactive l'installation d'app custom
2022-10-13 05:46:46 +02:00
#sed -i "s@<a role=\"button\" class=\"btn btn-success slide\">{{t 'install'}}</a>@<a role=\"\" class=\"btn btn-success slide\">{{t 'install'}}</a>@g" /var/lib/lxd/yunohost_demo1/rootfs/usr/share/yunohost/admin/views/app/app_catalog_category.ms