Ansible roles
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

15 lines
784 B

#!/bin/bash
chown -R root:root {{ funkwhale_root_dir }}/{front,api}
chmod 755 {{ funkwhale_root_dir }}
chown {{ funkwhale_user }}:apache {{ funkwhale_root_dir }}/data
chmod 750 {{ funkwhale_root_dir }}/data
chown -R {{ funkwhale_user }}:{{ funkwhale_user }} {{ funkwhale_root_dir }}/data/{media,music}
chown -R root:root {{ funkwhale_root_dir }}/data/static
find {{ funkwhale_root_dir }}/{front,api,data/static} -type f -exec chmod 644 "{}" \;
find {{ funkwhale_root_dir }}/{front,api} -type d -exec chmod 755 "{}" \;
chmod 755 {{ funkwhale_root_dir }}/api/manage.py
chmod 700 {{ funkwhale_root_dir }}/{meta,db_dumps,archives}
chown -R root:{{ funkwhale_user }} {{ funkwhale_root_dir }}/config
chmod 750 {{ funkwhale_root_dir }}/config
chmod 640 {{ funkwhale_root_dir }}/config/.env