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
|
test -x /etc/init.d/$service && invoke-rc.d $service start || true
|
||||||
done
|
done
|
||||||
|
|
||||||
|
#launch fixperms
|
||||||
|
/usr/lib/alternc/fixperms.sh
|
||||||
|
|
||||||
# hook
|
# hook
|
||||||
run-parts --arg=end /usr/lib/alternc/install.d
|
run-parts --arg=end /usr/lib/alternc/install.d
|
||||||
|
|
|
@ -117,14 +117,13 @@ doone() {
|
||||||
|
|
||||||
fixfile() {
|
fixfile() {
|
||||||
read GID LOGIN
|
read GID LOGIN
|
||||||
/usr/bin/setfacl -bk $file
|
/usr/bin/setfacl -bk "$file"
|
||||||
echo "gid: $GID"
|
echo "gid: $GID"
|
||||||
echo "file: $file"
|
echo "file: $file"
|
||||||
chown alterncpanel:$GID $file
|
chown alterncpanel:$GID "$file"
|
||||||
chmod 0770 $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
|
/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
|
echo file ownership and ACLs changed
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
if [[ "$file" != "" ]]; then
|
if [[ "$file" != "" ]]; then
|
||||||
|
|
Loading…
Reference in New Issue