Kupiki-Hotspot-Script icon indicating copy to clipboard operation
Kupiki-Hotspot-Script copied to clipboard

Restarting the ./pihotspot.sh script after the build process fails

Open crenelle opened this issue 5 years ago • 1 comments

Actual behavior

Reran the ./pihotspot.sh script as per resolving a previously cited and closed issue. Script runs for a very long time then says: "Reload configuration for SSH service" "ssh.service is not active, cannot reload." "Something went wrong with the last command. Please check the log file." "A previous installation has been done. It's not recommended to execute more than once the script."

Expected behavior

./pihotspot.sh script runs to completion.

I wonder if there is a recommended procedure for completing the installation script after there is a problem during its execution that causes the script to fail and stop.

I also wonder how to resolve the current build process issue (ssh.service not active, cannot reload.)

crenelle avatar Feb 28 '19 00:02 crenelle

Hello Should have been corrected ... Execute following missing commands with the root user :

export MYSQL_PASSWORD="pihotspot"
export KUPIKI_VERSION="2.0.13"
mkdir -p /var/local/kupiki
chmod 777 /var/local/kupiki
mariadb -u root -p$MYSQL_PASSWORD << EOT
use mysql;
update user set authentication_string=password('$MYSQL_PASSWORD'), plugin='mysql_native_password' where user='root';
flush privileges;
EOT
mkdir -p /etc/kupiki && chmod 700 /etc/kupiki
echo $KUPIKI_VERSION > /etc/kupiki/version

then reboot

pihomeserver avatar Mar 01 '19 10:03 pihomeserver