Luna/tools/install.sh
apio 701dc30221
All checks were successful
Build and test / build (push) Successful in 1m39s
base+su+libc: Add support for a shadow file and use it by default
2024-04-10 22:37:36 +02:00

33 lines
474 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
chown -R root:root base
cmake --install $LUNA_BUILD_DIR
chmod a+s base/usr/bin/su
chmod 600 base/etc/shadow
mkdir -p base/home/selene
mkdir -p base/dev
mkdir -p base/mnt
mkdir -p base/tmp
rm -f base/bin
ln -s usr/bin base/bin
chown -h root:root base/bin
cp $LUNA_ROOT/LICENSE base/etc/skel/LICENSE