Skip to content

Commit

Permalink
Fix banner display permissions
Browse files Browse the repository at this point in the history
  • Loading branch information
ophub committed Jan 11, 2022
1 parent a8c0081 commit 396cf67
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions rebuild
Original file line number Diff line number Diff line change
Expand Up @@ -415,6 +415,8 @@ copy_files() {
ln -sf usr/sbin sbin
ln -sf var/tmp tmp
ln -sf usr/share/zoneinfo/Asia/Shanghai etc/localtime

# Fix permission
chmod 777 var/tmp
chown man:root var/cache/man -R
chmod g+s var/cache/man -R
Expand All @@ -423,6 +425,8 @@ copy_files() {
chown 0 usr/lib/sudo/sudoers.so
chmod 644 usr/lib/sudo/sudoers.so
chmod 4755 usr/lib/policykit-1/polkit-agent-helper-1
chmod 4755 etc/update-motd.d/10-armbian-header 2>/dev/null
chmod 4755 etc/update-motd.d/30-armbian-sysinfo 2>/dev/null

# Delete related files
rm -f etc/apt/sources.list.save 2>/dev/null
Expand Down

0 comments on commit 396cf67

Please sign in to comment.