mirror of
https://github.com/torrentpier/autoinstall.git
synced 2025-02-28 15:10:55 +03:00
Added saving data to a file after the installation is complete (#12)
This commit is contained in:
parent
aaf92ee50b
commit
8445c520a4
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user