~ubuntu-core-dev/livecd-rootfs/trunk

« back to all changes in this revision

Viewing changes to live-build/ubuntu-desktop-next/hooks/400-create-apt-get-warning.binary

  • Committer: Balint Reczey
  • Date: 2019-01-31 08:14:49 UTC
  • Revision ID: balint.reczey@canonical.com-20190131081449-ptfnz0r4c2emh0nt
Moved to git at https://git.launchpad.net/livecd-rootfs

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
#!/bin/sh
2
 
 
3
 
set -ex
4
 
 
5
 
echo "I: Creating warning to use snappy when apt-get is used"
6
 
 
7
 
PREFIX=binary/boot/filesystem.dir
8
 
 
9
 
mkdir -p $PREFIX/usr/local/bin
10
 
cat >$PREFIX/usr/local/bin/no-apt <<EOF
11
 
#!/bin/sh
12
 
cat <<EOF
13
 
Ubuntu Core does not use apt-get, see 'snappy --help'!
14
 
EOF
15
 
chmod 755 $PREFIX/usr/local/bin/no-apt
16
 
 
17
 
for cmd in apt apt-cache apt-get; do
18
 
    ln -s no-apt $PREFIX/usr/local/bin/$cmd
19
 
done