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

Commit

Permalink
Fix init.d scripts permissions.
Browse files Browse the repository at this point in the history
  • Loading branch information
eduardofilo committed Nov 20, 2021
1 parent c6dc1e4 commit cbd17aa
Showing 1 changed file with 4 additions and 8 deletions.
12 changes: 4 additions & 8 deletions manual_build/build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -111,16 +111,12 @@ rm ${DIRECTORY}/mnt_p2/local/home/.py_backup/log.txt 2> /dev/null
echo "## Putting up version file flag"
echo ${1} > ${DIRECTORY}/mnt_p2/adam_version.txt

echo "## Installing directory scaffolding script"
if [ ! -f ${DIRECTORY}/S01_create_ext_scaffolding.sh ] ; then
rm -f ${DIRECTORY}/S01_create_ext_scaffolding.sh
fi
echo "## Installing userspace init.d scripts"
rm -f ${DIRECTORY}/mnt_p2/local/etc/init.d/* 2> /dev/null
cp ${DIRECTORY}/S10_create_ext_scaffolding.sh ${DIRECTORY}/mnt_p2/local/etc/init.d
chown 0:0 ${DIRECTORY}/mnt_p2/local/etc/shadow

echo "## Installing SM disable script"
chown 0:0 ${DIRECTORY}/mnt_p2/local/etc/init.d/S10_create_ext_scaffolding.sh
cp ${DIRECTORY}/S20_disable_sm.sh ${DIRECTORY}/mnt_p2/local/etc/init.d
chown 0:0 ${DIRECTORY}/mnt_p2/local/etc/shadow
chown 0:0 ${DIRECTORY}/mnt_p2/local/etc/init.d/S20_disable_sm.sh

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

0 comments on commit cbd17aa

Please sign in to comment.