1
0
Fork 0

Add scripts from helios

This commit is contained in:
Tobias Strobel 2021-08-12 17:53:34 +02:00
parent f0e8c19397
commit 041861f7b4
4 changed files with 103 additions and 0 deletions

View file

@ -0,0 +1,14 @@
#!/bin/bash
find /var/www/ -type f -print0 | xargs -0 chmod 0640
find /var/www/ -type d -print0 | xargs -0 chmod 0750
chown -R acmeuser:ssl-cert /etc/ssl/private
chown root:ssl-cert /etc/ssl/private/ssl-cert-snakeoil.key
chmod -R 750 /etc/ssl/private
find /etc/ssl/private/ -type f -print0 | xargs -0 chmod 0640
chown -R www-data:www-data /var/www
chown -R www-data:www-data /mnt/storage/nc_data
chmod 0644 /var/www/nextcloud/.htaccess
chmod 0644 /var/www/nextcloud/.user.ini
exit 0