mirror of
https://github.com/YunoHost/install_script.git
synced 2024-09-03 20:06:25 +02:00
[microdecision] Delete user pi only if it exists...
This commit is contained in:
parent
5a66ff9e0e
commit
38a7646f06
1 changed files with 3 additions and 1 deletions
|
@ -466,7 +466,9 @@ function user_pi_logged_out() {
|
||||||
}
|
}
|
||||||
|
|
||||||
function del_user_pi() {
|
function del_user_pi() {
|
||||||
deluser --remove-all-files pi >> $YUNOHOST_LOG 2>&1
|
if id "pi" >/dev/null 2>&1; then
|
||||||
|
deluser --remove-all-files pi >> $YUNOHOST_LOG 2>&1
|
||||||
|
fi
|
||||||
}
|
}
|
||||||
|
|
||||||
function setup_firstboot() {
|
function setup_firstboot() {
|
||||||
|
|
Loading…
Add table
Reference in a new issue