Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
Sympl
Sympl Install Script
Commits
b2dd3784
Commit
b2dd3784
authored
Aug 21, 2020
by
Paul Cammish
Browse files
Fixes for new-user onboarding and documentation.
parent
83f3a6a3
Changes
1
Hide whitespace changes
Inline
Side-by-side
install.sh
View file @
b2dd3784
...
...
@@ -35,13 +35,14 @@ if [ "x$UNHANDLED" != "x" ]; then
exit
1
fi
clear
echo
echo
"-----------------------------------------------------------------------"
echo
" Sympl Installer v0.
6
"
echo
" Sympl Installer v0.
7
"
echo
"-----------------------------------------------------------------------"
echo
echo
"This script will help you install Sympl on a Debian Linux
server with"
echo
" minimal hassle, and give you some intial pointers."
echo
"This script will help you install Sympl on a Debian Linux
or Raspberry
echo "
Pi OS server with
minimal hassle, and give you some intial pointers.
"
echo
if [
$(
grep
-c
'^stretch$\|^buster$'
<<<
$codename
)
== 0 ]; then
...
...
@@ -93,7 +94,7 @@ echo "deb http://packages.mythic-beasts.com/mythic/ $version main" > "/etc/apt/s
echo "OK"
echo -n "Updating apt..."
apt
-get
-qq
update
apt -
y
qq update
echo "OK"
echo "Installing Sympl..."
...
...
@@ -109,22 +110,28 @@ if [ $? != 0 ]; then
exit 1
fi
if
[
$noninteractive
==
0
]
;
then
clear
echo
-n
"Thanks for installing..."
/etc/update-motd.d/00-sympl-banner
read
-n1
-p
'Press any key for important information...'
echo
"
clear
echo -n "Thanks for installing..."
/etc/update-motd.d/00-sympl-banner
#read -n1 -p '
Press any key
for
important information...
'
SYMPL_PASSWORD="$(openssl rand -base64 32 | tr -dc A-Za-z0-9 | cut -c 1-16)"
echo
echo -n "Setting password for user '
sympl
' to '
$SYMPL_PASSWORD
'..."
echo "sympl:$SYMPL_PASSWORD" | chpasswd
echo '
OK
'
Important Information - Read This Now!
/etc/update-motd.d/00-sympl-banner | sed "s,\x1B\[[0-9;]*[a-zA-Z],,g" > /home/sympl/README_SYMPL.txt
echo "
Important Information
1. This system now has a system user named '
sympl
', which has inherited the
password of the 'root' user.
You should change this password IMMEDIATELY, and you will be prompted when
you continue.
ssh keys from the root user if set.
A randomly generated password for the '
sympl
' user has been set as:
$SYMPL_PASSWORD
You should change this password as soon as possible with the command
'
passwd sympl
'.
Ensure the password is complex as it has access to the whole system.
Consider using SSH Keys where possible.
...
...
@@ -141,18 +148,15 @@ if [ $noninteractive == 0 ]; then
4. To get started, check http://wiki.sympl.host/Get_Started
"
(Press '
q
' to quit less.)" >> /home/sympl/README_SYMPL.txt
read
-n1
-p
'Press any key to set the new password...'
if [ ! -f /root/README_SYMPL.txt ] && [ ! -L /root/README_SYMPL.txt ] ; then ln -s /home/sympl/README_SYMPL.txt /root/README_SYMPL.txt ; fi
echo
echo
"Setting new password for user 'sympl':"
passwd sympl
else
echo
echo
'Check http://wiki.sympl.host for documentation.'
echo
fi
echo "Important new-user information is available at any time by running:
less ~/README_SYMPL.txt
You should read this as soon as possible.
echo
"Sympl install completed!"
\ No newline at end of file
Check these URLs for other information:
http://wiki.sympl.host for documentation and guides.
http://forum.sympl.host for support and assistance.
"
\ No newline at end of file
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment