From 396cf6755d4a6c4e661a09c95673a0c8cae0f075 Mon Sep 17 00:00:00 2001 From: ophub Date: Tue, 11 Jan 2022 13:25:51 +0800 Subject: [PATCH] Fix banner display permissions --- rebuild | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/rebuild b/rebuild index 2b5ed9adae..ad4734892d 100755 --- a/rebuild +++ b/rebuild @@ -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 @@ -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