Skip to content

Commit

Permalink
NEW Add ansible tool to update dolibarr conf file on all servers
Browse files Browse the repository at this point in the history
  • Loading branch information
eldy committed Aug 31, 2022
1 parent 3b8bad6 commit 19afda2
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
4 changes: 2 additions & 2 deletions scripts/ansible/change_dolibarr_config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,9 @@
tasks:
- name: Change conf value
ini_file:
path: /home/admin/wwwroot/dolibarr/htdocs/conf/conf.conf
path: /home/admin/wwwroot/dolibarr/htdocs/conf/conf.php
section: null
option: "${{option}}"
value: "{{value}}"
value: "'{{value}}';"
no_extra_spaces: yes
backup: yes
4 changes: 4 additions & 0 deletions scripts/clean.sh
Original file line number Diff line number Diff line change
Expand Up @@ -196,6 +196,10 @@ echo "Nettoyage vieux fichiers /tmp"
echo find /tmp -mtime +30 -name 'phpsendmail*.log' -delete
find /tmp -mtime +30 -name 'phpsendmail*.log' -delete

echo "Nettoyage vieux fichiers conf"
echo find /home/admin/wwwroot/dolibarr/htdocs/conf -mtime +10 -name '*~' -delete
find /home/admin/wwwroot/dolibarr/htdocs/conf -mtime +10 -name '*~' -delete


echo "***** Clean available virtualhost that are not enabled hosts (safe)"
for fic in `ls /etc/apache2/sellyoursaas-available/*.*.*.*.conf /etc/apache2/sellyoursaas-available/*.home.lan 2>/dev/null`
Expand Down

0 comments on commit 19afda2

Please sign in to comment.