diff --git a/non_graf_installer/component-installer/provision_ogrepository.sh b/non_graf_installer/component-installer/provision_ogrepository.sh index 6f94c2f..53b7df0 100644 --- a/non_graf_installer/component-installer/provision_ogrepository.sh +++ b/non_graf_installer/component-installer/provision_ogrepository.sh @@ -44,7 +44,6 @@ add_user_ogrepository() { cat /tmp/oginstall/ssh-keys/opengnsys.pub >> $OGUSER_HOME/.ssh/authorized_keys chown -R $OGUSER:$OGUSER $OGUSER_HOME/.ssh chmod 0600 $OGUSER_HOME/.ssh/* - fi if [ ! -f /etc/sudoers.d/$OGUSER ]; then echo "User $OGUSER does not have sudo permissions, adding it" @@ -56,13 +55,13 @@ add_user_ogrepository() { create_directories() { mkdir -p $INSTALL_DIR - mkdir -p $INSTALL_DIR/images $INSTALL_DIR/images_trash/ $INSTALL_DIR/bin/ $INSTALL_DIR/etc/ $INSTALL_DIR/log/ $INSTALL_DIR/api/ + mkdir -p $INSTALL_DIR/images $INSTALL_DIR/images_trash/ $INSTALL_DIR/bin/ $INSTALL_DIR/etc/ $INSTALL_DIR/log/ $INSTALL_DIR/api/ $INSTALL_DIR/images_virtual chown -R $OGUSER:$OGUSER $INSTALL_DIR } install_dependencies() { apt update -y - apt install -y git python3 python3-pip python3-flask python3-paramiko python3-psutil python3-flasgger debian-archive-keyring samba gunicorn wakeonlan + apt install -y git python3 python3-pip python3-flask python3-paramiko python3-psutil python3-flasgger debian-archive-keyring samba gunicorn wakeonlan lzop partclone qemu-utils } install_ext_repo() { @@ -98,7 +97,6 @@ configure_samba() { systemctl restart smbd # Create default user ogrepository (echo $OGPASS; echo $OGPASS) | smbpasswd -s -a $OGUSER - } ## Main program