Dunno why we need this for Raspbian specifically ... hostname is properly changed during postinstall

This commit is contained in:
Alexandre Aubin 2018-02-12 23:51:46 +01:00
parent 23c124ae2f
commit 0c89145d31

View file

@ -98,7 +98,6 @@ function main()
if is_raspbian ; then
step del_user_pi || die "Unable to delete user pi"
step change_hostname || die "Unable to change hostname"
step setup_firstboot || die "Unable to setup firstboot"
fi
@ -400,11 +399,6 @@ function del_user_pi() {
deluser --remove-all-files pi >> $YUNOHOST_LOG 2>&1
}
function change_hostname() {
sed -i 's/raspberrypi/yunohost/g' /etc/hosts
sed -i 's/raspberrypi/yunohost/g' /etc/hostname
}
function setup_firstboot() {
cat > /etc/init.d/yunohost-firstboot << EOF