Luna/tools/install.sh
apio 77560bbc3e
All checks were successful
continuous-integration/drone/push Build is passing
kernel+tools: Allow loading files with different owners + add a more dynamic install script
2023-05-06 12:11:35 +02:00

29 lines
459 B
Bash
Executable File

#!/usr/bin/env bash
set -e
source $(dirname $0)/env.sh
cd $LUNA_ROOT
if [ "$(id -u)" -ne "0" ]
then
echo "This script must be run under fakeroot."
exit 1
fi
if [ "$USER" == "root" ]
then
echo "This script must be run under fakeroot instead of as root."
exit 1
fi
chown -R root:root initrd
cmake --install $LUNA_BUILD_DIR
chmod 400 initrd/boot/moon
chmod a+s initrd/bin/su
mkdir -p initrd/home/selene
chown 1000:1000 initrd/home/selene