Skip to content
This repository was archived by the owner on Jan 29, 2025. It is now read-only.

Commit cbd17aa

Browse files
committed
Fix init.d scripts permissions.
1 parent c6dc1e4 commit cbd17aa

File tree

1 file changed

+4
-8
lines changed

1 file changed

+4
-8
lines changed

manual_build/build.sh

Lines changed: 4 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -111,16 +111,12 @@ rm ${DIRECTORY}/mnt_p2/local/home/.py_backup/log.txt 2> /dev/null
111111
echo "## Putting up version file flag"
112112
echo ${1} > ${DIRECTORY}/mnt_p2/adam_version.txt
113113

114-
echo "## Installing directory scaffolding script"
115-
if [ ! -f ${DIRECTORY}/S01_create_ext_scaffolding.sh ] ; then
116-
rm -f ${DIRECTORY}/S01_create_ext_scaffolding.sh
117-
fi
114+
echo "## Installing userspace init.d scripts"
115+
rm -f ${DIRECTORY}/mnt_p2/local/etc/init.d/* 2> /dev/null
118116
cp ${DIRECTORY}/S10_create_ext_scaffolding.sh ${DIRECTORY}/mnt_p2/local/etc/init.d
119-
chown 0:0 ${DIRECTORY}/mnt_p2/local/etc/shadow
120-
121-
echo "## Installing SM disable script"
117+
chown 0:0 ${DIRECTORY}/mnt_p2/local/etc/init.d/S10_create_ext_scaffolding.sh
122118
cp ${DIRECTORY}/S20_disable_sm.sh ${DIRECTORY}/mnt_p2/local/etc/init.d
123-
chown 0:0 ${DIRECTORY}/mnt_p2/local/etc/shadow
119+
chown 0:0 ${DIRECTORY}/mnt_p2/local/etc/init.d/S20_disable_sm.sh
124120

125121
echo "## Installing Py Backup config"
126122
cp ${DIRECTORY}/config.ini ${DIRECTORY}/mnt_p2/local/home/.py_backup/

0 commit comments

Comments
 (0)