web_logs: Better directory naming
This commit is contained in:
parent
0155f456ba
commit
1b3a2a8000
2 changed files with 5 additions and 2 deletions
|
@ -20,7 +20,7 @@ print_date() {
|
|||
}
|
||||
|
||||
get_vhosts | while read -r vhost ; do
|
||||
destdir="/srv/weblog/parsed/${vhost}"
|
||||
destdir="/srv/weblog/archive/${vhost}"
|
||||
[ -d "$destdir" ] || mkdir "$destdir"
|
||||
for i in $(seq 0 7); do
|
||||
isodate="$(print_date $i)"
|
||||
|
|
|
@ -18,11 +18,14 @@
|
|||
|
||||
- name: Create data directory
|
||||
ansible.builtin.file:
|
||||
path: /export/weblog
|
||||
path: "{{ item }}"
|
||||
state: directory
|
||||
mode: "0770"
|
||||
owner: root
|
||||
group: weblog
|
||||
with_items:
|
||||
- /export/weblog
|
||||
- /export/weblog/archive
|
||||
|
||||
- name: Link data directory
|
||||
ansible.builtin.file:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue