Rename raspbian-update, make install script

It's understandable why you might want to pull this off a server in case
how you have to upgrade things changes for some reason, but we're moving
toward following Debian's lead on these things to the greatest extent
possible.
This commit is contained in:
T. Joseph Carter 2016-11-27 03:03:03 -08:00
parent e131b8de40
commit 95fc0ef629
4 changed files with 6 additions and 4 deletions

View File

@ -182,7 +182,7 @@ else
echo "A2SERVER: unzip has already been installed."
fi
a2sTools="afpsync afptype mkatinit mkvolinfo cppo"
a2sTools="afpsync afptype mkatinit mkvolinfo cppo raspbian-update"
a2sHelp="a2server-help.txt"
a2sConfScripts="a2server-aliases a2serverrc"
if [[ -z "$a2sDevel" ]]; then

View File

@ -12,7 +12,7 @@ alias system-restart='sudo shutdown -r now'
alias raspi-config='[[ -f /usr/bin/raspi-config ]] && sudo /usr/bin/raspi-config || echo "raspi-config not found. Are you using a Raspberry Pi with Raspbian?"'
alias raspbian-update='wget -qO /tmp/raspbian-update ${A2SERVER_SCRIPT_URL:-https://raw.githubusercontent.com/RasppleII/a2server/current/}scripts/raspbian-update.txt || { echo "Can'"'"'t download A2SERVER setup scripts. Do you has internet?"; false; } && source /tmp/raspbian-update'
alias rasppleii-update='raspbian-update a2cloud a2server'
alias welcome-message-edit='sudo nano /etc/motd'

View File

View File

@ -184,8 +184,10 @@ done
if [[ $updateRasppleII ]]; then
echo "A2SERVER: Updating Raspple II (takes up to an hour)..."
wget -qO /tmp/raspbian-update "${A2SERVER_SCRIPT_URL}scripts/raspbian-update.txt"
source /tmp/raspbian-update a2cloud a2server $autoAnswerYes $skipRepoUpdate
wget -qO /tmp/raspbian-update "${A2SERVER_SCRIPT_URL}scripts/tools/raspbian-update"
chmod +x /tmp/raspbian-update
/tmp/raspbian-update a2cloud a2server $autoAnswerYes $skipRepoUpdate
rm -f /tmp/raspbian-update
if [[ $0 == "-bash" ]]; then
return 0
else