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
|
|
|
|
|
|
|
|
MACHINE=$1 # Nom du conteneur
|
|
|
|
|
2018-08-26 13:40:41 +02:00
|
|
|
# Disable the button to install a custom app
|
2017-06-05 16:30:42 +02:00
|
|
|
sed -i "s/<input type=\"submit\" class=\"btn btn-success slide\" value=\"{{t 'install'}}\">/<input type=\"\" class=\"btn btn-success slide\" value=\"{{t 'install'}}\">/g" /var/lib/lxc/$MACHINE/rootfs/usr/share/yunohost/admin/views/app/app_list_install.ms
|