
kano is build upon raspbianShiftPlusOne wrote:what do you mean by 'integrate'?

Code: Select all
dev.kano.me release/main
Code: Select all
wget -q -O - http://dev.kano.me/archive/repo.gpg.key | sudo /usr/bin/apt-key add -
Code: Select all
sudo echo "deb http://dev.kano.me/archive/ release main" > /etc/apt/sources.list.d/kano.list
Code: Select all
sudo apt-get upgrade -y
sudo apt-get dist-upgrade -yCode: Select all
#!/bin/bash -e
if [ $EUID -ne 0 ]; then
echo "This script must be run as root!"
exit 1
fiPoint 1. And 3. Noted changes will be madeShiftPlusOne wrote:won't work
This runs the 'echo' command as root. However, the redirection '>' is done as the current user.Code: Select all
sudo echo "deb http://dev.kano.me/archive/ release main" > /etc/apt/sources.list.d/kano.list
Why do you have 'sudo' in every other line?
You also download files and don't clean up after yourself.
Why? They do almost the same thing.Code: Select all
sudo apt-get upgrade -y sudo apt-get dist-upgrade -y
Since almost everything the script does is done as root, cut out all of the 'sudo' and add the above check to the script.Code: Select all
#!/bin/bash -e if [ $EUID -ne 0 ]; then echo "This script must be run as root!" exit 1 fi

oh yeah !! almost forgot!ShiftPlusOne wrote:2) Dist-upgrade implies upgrade.