livecd-rootfs/live-build/ubuntu-core/hooks/400-create-apt-get-warning.binary
2014-12-02 14:57:54 +01:00

16 lines
312 B
Bash

#!/bin/sh
set -ex
echo "I: Creating warning to use snappy when apt-get is used"
PREFIX=binary/boot/filesystem.dir
mkdir -p $PREFIX/usr/local/bin
cat >$PREFIX/usr/local/bin/apt-get <<EOF
#!/bin/sh
cat <<EOF
echo "Ubuntu Core does not use APT, see 'snappy --help'!"
EOF
chmod 755 $PREFIX/usr/local/bin/apt-get