Files
water_new/permission.sh
2023-03-08 09:16:04 +08:00

10 lines
164 B
Bash

#!/bin/sh
user=www-data
grep '^$user' /etc/passwd | wc -l > /dev/null
if [ $? -ne 0 ]
then
chown -R www-data:www-data storage bootstrap/cache modules.json
fi