mirror of
https://github.com/YunoHost/install_script.git
synced 2024-09-03 20:06:25 +02:00
Merge pull request #67 from YunoHost/fix-missing-adduser-deps
[fix] Missing adduser deps
This commit is contained in:
commit
5669e2187a
1 changed files with 4 additions and 1 deletions
|
@ -231,6 +231,9 @@ function check_assertions()
|
||||||
# Assert we're root
|
# Assert we're root
|
||||||
[[ "$(id -u)" == "0" ]] || die "This script must be run as root. On most setups, typing 'sudo -i' can be used to become root."
|
[[ "$(id -u)" == "0" ]] || die "This script must be run as root. On most setups, typing 'sudo -i' can be used to become root."
|
||||||
|
|
||||||
|
# Check PATH var
|
||||||
|
[[ "$PATH" == *"/sbin"* ]] || die "Your environment PATH variable must contains /sbin directory."
|
||||||
|
|
||||||
# Assert systemd is installed
|
# Assert systemd is installed
|
||||||
command -v systemctl > /dev/null || die "YunoHost requires systemd to be installed."
|
command -v systemctl > /dev/null || die "YunoHost requires systemd to be installed."
|
||||||
|
|
||||||
|
@ -301,7 +304,7 @@ function upgrade_system() {
|
||||||
|
|
||||||
function install_script_dependencies() {
|
function install_script_dependencies() {
|
||||||
# dependencies of the install script itself
|
# dependencies of the install script itself
|
||||||
local DEPENDENCIES="lsb-release wget whiptail gnupg apt-transport-https"
|
local DEPENDENCIES="lsb-release wget whiptail gnupg apt-transport-https adduser"
|
||||||
|
|
||||||
if [[ "$AUTOMODE" == "0" ]] ;
|
if [[ "$AUTOMODE" == "0" ]] ;
|
||||||
then
|
then
|
||||||
|
|
Loading…
Add table
Reference in a new issue