18 lines
340 B
Bash
18 lines
340 B
Bash
|
#!/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
|
||
|
|