From 8445c520a457f57824d674224f31394abe3976f2 Mon Sep 17 00:00:00 2001 From: Sergei Solovev <31823239+SeAnSolovev@users.noreply.github.com> Date: Mon, 25 Nov 2024 12:17:01 +0300 Subject: [PATCH] Added saving data to a file after the installation is complete (#12) --- deb.install.sh | 25 +++++++++++++------------ 1 file changed, 13 insertions(+), 12 deletions(-) diff --git a/deb.install.sh b/deb.install.sh index 0758d4c..ce9d3d6 100644 --- a/deb.install.sh +++ b/deb.install.sh @@ -16,6 +16,7 @@ clear suppOs=("debian" "ubuntu") currOs=$(grep ^ID= /etc/os-release | awk -F= '{print $2}') logsInst="/var/log/torrentpier_install.log" +saveFile="/root/torrentpier.cfg" # TorrentPier auth torrentPierUser="admin" @@ -285,18 +286,18 @@ EOF exit 1 fi - echo "===================================" - echo "Link to your TorrentPier website: http://$HOST/" - echo "User: $torrentPierUser" - echo "Password: $torrentPierPass" - echo "===================================" - echo "Database: $dbSql" - echo "User to database: $userSql" - echo "Password to database: $passSql" - echo "===================================" - echo "Link to phpMyAdmin: http://$HOST:9090/phpmyadmin" - echo "Password to phpMyAdmin: $passPma" - echo "===================================" + echo "===================================" | tee -a $saveFile + echo "Link to your TorrentPier website: http://$HOST/" | tee -a $saveFile + echo "User: $torrentPierUser" | tee -a $saveFile + echo "Password: $torrentPierPass" | tee -a $saveFile + echo "===================================" | tee -a $saveFile + echo "Database: $dbSql" | tee -a $saveFile + echo "User to database: $userSql" | tee -a $saveFile + echo "Password to database: $passSql" | tee -a $saveFile + echo "===================================" | tee -a $saveFile + echo "Link to phpMyAdmin: http://$HOST:9090/phpmyadmin" | tee -a $saveFile + echo "Password to phpMyAdmin: $passPma" | tee -a $saveFile + echo "===================================" | tee -a $saveFile else echo "Your system is not supported." 2>&1 | tee -a "$logsInst" fi