mirror of
https://github.com/YunoHost/yunohost_demo.git
synced 2024-09-03 19:56:44 +02:00
Désactive app custom et add domain
This commit is contained in:
parent
1385046253
commit
6eb03a2733
2 changed files with 7 additions and 1 deletions
|
@ -145,6 +145,12 @@ ssh $ARG_SSH $LXC_NAME1 "sudo yunohost app setting shellinabox path -d && sudo y
|
||||||
sed -i "3i\<center>Login: demo / Password: demo</center>" /var/lib/lxc/yunohost_demo1/rootfs/usr/share/ssowat/portal/login.html # Sur le login du portail
|
sed -i "3i\<center>Login: demo / Password: demo</center>" /var/lib/lxc/yunohost_demo1/rootfs/usr/share/ssowat/portal/login.html # Sur le login du portail
|
||||||
sed -i "17i\   Password: demo" /var/lib/lxc/yunohost_demo1/rootfs/usr/share/yunohost/admin/views/login.ms # Et sur le login admin
|
sed -i "17i\   Password: demo" /var/lib/lxc/yunohost_demo1/rootfs/usr/share/yunohost/admin/views/login.ms # Et sur le login admin
|
||||||
|
|
||||||
|
# Désactive l'installation d'app custom
|
||||||
|
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/yunohost_demo1/rootfs/usr/share/yunohost/admin/views/app/app_list_install.ms
|
||||||
|
|
||||||
|
# Désactive l'ajout de domaine, pour éviter surtout les nohost
|
||||||
|
sed -i "s/<input type=\"submit\" class=\"btn btn-success slide back\" value=\"{{t 'add'}}\">/<input type=\"\" class=\"btn btn-success slide back\" value=\"{{t 'add'}}\">/g" /var/lib/lxc/yunohost_demo1/rootfs/usr/share/yunohost/admin/views/domain/domain_add.ms
|
||||||
|
|
||||||
# ********
|
# ********
|
||||||
|
|
||||||
echo "> Arrêt de la machine virtualisée" | tee -a "$LOG_BUILD_LXC"
|
echo "> Arrêt de la machine virtualisée" | tee -a "$LOG_BUILD_LXC"
|
||||||
|
|
|
@ -166,10 +166,10 @@ sudo ./letsencrypt-auto certonly --config /etc/letsencrypt/conf.ini -d $DOMAIN
|
||||||
# Décommente les lignes du certificat
|
# Décommente les lignes du certificat
|
||||||
# sudo sed -i "s/#\tssl_certificate/\tssl_certificate/g" /etc/nginx/conf.d/$DOMAIN.conf
|
# sudo sed -i "s/#\tssl_certificate/\tssl_certificate/g" /etc/nginx/conf.d/$DOMAIN.conf
|
||||||
# Supprime les commentaires dans la conf nginx
|
# Supprime les commentaires dans la conf nginx
|
||||||
|
|
||||||
sudo sed -i "s/^#//g" /etc/nginx/conf.d/$DOMAIN.conf
|
sudo sed -i "s/^#//g" /etc/nginx/conf.d/$DOMAIN.conf
|
||||||
sudo service nginx reload
|
sudo service nginx reload
|
||||||
|
|
||||||
|
|
||||||
# Mise en place du cron de renouvellement.
|
# Mise en place du cron de renouvellement.
|
||||||
wget https://raw.githubusercontent.com/YunoHost-Apps/letsencrypt_ynh/master/sources/certificateRenewer
|
wget https://raw.githubusercontent.com/YunoHost-Apps/letsencrypt_ynh/master/sources/certificateRenewer
|
||||||
sed -i "s/DOMAIN_NAME/$DOMAIN/" certificateRenewer
|
sed -i "s/DOMAIN_NAME/$DOMAIN/" certificateRenewer
|
||||||
|
|
Loading…
Reference in a new issue