18 lines
387 B
Bash
Executable file
18 lines
387 B
Bash
Executable file
#!/bin/bash
|
|
|
|
if [[ $(whoami) != root ]]
|
|
then
|
|
echo -e "\e[38;5;1mrun as root please\e[0m"
|
|
exit
|
|
fi
|
|
|
|
NAME=minrootfs
|
|
SCRIPT_DIR=$(dirname -- "$(readlink -f "${BASH_SOURCE}")")
|
|
|
|
rm -rf $SCRIPT_DIR/$NAME
|
|
$SCRIPT_DIR/alpine-make-rootfs/alpine-make-rootfs --packages 'python3 gcc libc-dev' $SCRIPT_DIR/$NAME
|
|
#chown -R nobody:nogroup $SCRIPT_DIR/$NAME
|
|
#rm -r ../$NAME
|
|
#mv $NAME ../$NAME
|
|
|