addond: give proper permission after restoring files
This commit is contained in:
12
addond_tail
12
addond_tail
@@ -24,6 +24,16 @@ case "$1" in
|
|||||||
# Stub
|
# Stub
|
||||||
;;
|
;;
|
||||||
post-restore)
|
post-restore)
|
||||||
# Stub
|
if [ -d "/postinstall" ]; then
|
||||||
|
P="/postinstall/system"
|
||||||
|
else
|
||||||
|
P="/system"
|
||||||
|
fi
|
||||||
|
|
||||||
|
for i in $(list_files); do
|
||||||
|
chown root:root "$P/$i"
|
||||||
|
chmod 644 "$P/$i"
|
||||||
|
chmod 755 "$(dirname "$P/$i")"
|
||||||
|
done
|
||||||
;;
|
;;
|
||||||
esac
|
esac
|
||||||
|
Reference in New Issue
Block a user