From 0c89145d31d9f88722ef94adf27e50530e8becea Mon Sep 17 00:00:00 2001 From: Alexandre Aubin Date: Mon, 12 Feb 2018 23:51:46 +0100 Subject: [PATCH] Dunno why we need this for Raspbian specifically ... hostname is properly changed during postinstall --- install_yunohost | 6 ------ 1 file changed, 6 deletions(-) diff --git a/install_yunohost b/install_yunohost index 6daf112..c6934be 100755 --- a/install_yunohost +++ b/install_yunohost @@ -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