ms-runner/starter/create_rootfs.sh

18 lines
340 B
Bash
Raw Normal View History

2024-06-20 16:41:25 +00:00
#!/bin/bash
if [[ $(whoami) != root ]]
then
echo "run as root please"
exit
fi
NAME=minrootfs
SCRIPT_DIR=$(dirname -- "$(readlink -f "${BASH_SOURCE}")")
rm -rf $SCRIPT_DIR/$NAME
sudo $SCRIPT_DIR/alpine-make-rootfs/alpine-make-rootfs $SCRIPT_DIR/$NAME
#chown -R nobody:nogroup $SCRIPT_DIR/$NAME
#rm -r ../$NAME
#mv $NAME ../$NAME