bugfix fixperms (files with spaces) + adding a call in alternc.install
This commit is contained in:
parent
5cf807eddb
commit
d23f2035c1
|
@ -452,5 +452,8 @@ for service in $SERVICES; do
|
|||
test -x /etc/init.d/$service && invoke-rc.d $service start || true
|
||||
done
|
||||
|
||||
#launch fixperms
|
||||
/usr/lib/alternc/fixperms.sh
|
||||
|
||||
# hook
|
||||
run-parts --arg=end /usr/lib/alternc/install.d
|
||||
|
|
|
@ -117,14 +117,13 @@ doone() {
|
|||
|
||||
fixfile() {
|
||||
read GID LOGIN
|
||||
/usr/bin/setfacl -bk $file
|
||||
/usr/bin/setfacl -bk "$file"
|
||||
echo "gid: $GID"
|
||||
echo "file: $file"
|
||||
chown alterncpanel:$GID $file
|
||||
chmod 0770 $file
|
||||
/usr/bin/setfacl -m u:$GID:rw- -m g:$GID:rw- -m g:alterncpanel:rw- -m u:$GID:rw- -m g:$GID:rw- $file
|
||||
chown alterncpanel:$GID "$file"
|
||||
chmod 0770 "$file"
|
||||
/usr/bin/setfacl -m u:$GID:rw- -m g:$GID:rw- -m g:alterncpanel:rw- -m u:$GID:rw- -m g:$GID:rw- "$file"
|
||||
echo file ownership and ACLs changed
|
||||
|
||||
}
|
||||
|
||||
if [[ "$file" != "" ]]; then
|
||||
|
|
Loading…
Reference in New Issue