mirror of
https://github.com/YunoHost/install_script.git
synced 2024-09-03 20:06:25 +02:00
Dunno why we need this for Raspbian specifically ... hostname is properly changed during postinstall
This commit is contained in:
parent
23c124ae2f
commit
0c89145d31
1 changed files with 0 additions and 6 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Reference in a new issue