Skip to content

New installation via easyinstall.sh fails when specifying a RaSCSI password #803

@nucleogenic

Description

@nucleogenic

Info

Which version of Pi are you using: Raspberry Pi Zero 2 Rev 1.0
Which github revision of software: 440fa65
Which board version: 2.4a
Which computer is the RaSCSI connected to: N/A

Describe the issue

On a brand new installation via easyinstall.sh, if the dir $HOME/.config/rascsi does not exist, the installation fails.

This appears to be because createCfgDir is called after configureAuthToken.

Transcript with error:

Choose among the following options:
INSTALL/UPDATE RASCSI (FULLSPEC version)
  1) install or update RaSCSI Service + Web Interface
  2) install or update RaSCSI Service
  3) install or update RaSCSI OLED Screen (requires hardware)
CREATE HFS FORMATTED (MAC) IMAGE WITH LIDO DRIVERS
** For the Mac Plus, it's better to create an image through the Web Interface **
  4) 600MB drive (suggested size)
  5) custom drive size (up to 4000MB)
NETWORK BRIDGE ASSISTANT
  6) configure network bridge for Ethernet (DHCP)
  7) configure network bridge for WiFi (static IP + NAT)
INSTALL COMPANION APPS
  8) install AppleShare File Server (Netatalk)
  9) install Web Proxy Server (Macproxy)
ADVANCED OPTIONS
 10) compile and install RaSCSI stand-alone
 11) configure the RaSCSI Web Interface stand-alone
EXPERIMENTAL FEATURES
 12) install or update RaSCSI Control Board UI (requires hardware)
Enter your choice (0-12) or CTRL-C to exit: 1
Installing / Updating RaSCSI Service (FULLSPEC) + Web Interface
This script will make the following changes to your system:
- Install additional packages with apt-get
- Add and modify systemd services
- Modify and enable Apache2 and Nginx web services
- Create files and directories
- Change permissions of files and directories
- Modify user groups and permissions
- Install binaries to /usr/local/bin
- Install manpages to /usr/local/man
- Create a self-signed certificate in /etc/ssl
Input your password to allow this script to make the above changes.

Do you want to protect your RaSCSI installation with a password? [y/N]
y
Enter the password that you want to use: foo
./easyinstall.sh: line 266: /home/pi/.config/rascsi/rascsi_secret: No such file or directory

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions