Fix switch user/group

This commit is contained in:
Josue-T 2018-08-03 09:38:39 +02:00 committed by GitHub
parent e2567c82f1
commit 36fd98e020
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -34,7 +34,7 @@ ynh_use_logrotate () {
local su_directive="" local su_directive=""
if [[ -n $user_group ]]; then if [[ -n $user_group ]]; then
su_directive=" # Run logorotate as specific user - group su_directive=" # Run logorotate as specific user - group
su ${user_group#*/} ${user_group%/*}" su ${user_group%/*} ${user_group#*/}"
fi fi
cat > ./${app}-logrotate << EOF # Build a config file for logrotate cat > ./${app}-logrotate << EOF # Build a config file for logrotate