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
|
2024-02-29 16:46:23 +01:00
|
|
|
EchoVert $(basename $f)
|
2023-11-13 16:40:30 +01:00
|
|
|
CreoleCat -t $(basename $f)
|
|
|
|
fi
|
|
|
|
done
|
|
|
|
|
|
|
|
Title "Restart apache"
|
|
|
|
service apache2 restart
|
|
|
|
|
2024-03-01 21:12:48 +01:00
|
|
|
if [[ "$1" != "refresh" ]]
|
|
|
|
then
|
|
|
|
chmod +x $container_path_web/usr/share/envole/docker/envole.sh
|
|
|
|
$RunCmd "envole $1 $2" web
|
|
|
|
fi
|