envole/misc/tools/e-reconfigure.sh

30 lines
596 B
Bash
Raw Normal View History

2023-11-13 16:40:30 +01:00
#!/bin/bash
. /usr/share/envole/docker/misc/e-ihm.sh
RunCmd=CreoleRun
clear
BigTitle "RECONFIGURE ENVOLE"
container_path_web=$(CreoleGet container_path_web non)
Title "Rafraichissement creoled"
service creoled restart
Title "Generation templates"
FILES="/usr/share/eole/creole/distrib/envole*"
for f in $FILES
do
if [ -f "$f" ]
then
EchoRouge $(basename $f)
CreoleCat -t $(basename $f)
fi
done
Title "Restart apache"
service apache2 restart
chmod +x $container_path_web/usr/share/envole/docker/envole.sh
$RunCmd "cd /usr/share/envole/docker && ./envole.sh" web