Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
M
mailinabox
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Administrator
mailinabox
Commits
2d8ee993
Commit
2d8ee993
authored
Aug 31, 2013
by
Joshua Tauberer
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
stop if the machine permits password login; remove testing code
parent
d307633a
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
14 additions
and
3 deletions
+14
-3
start.sh
scripts/start.sh
+14
-0
system.sh
scripts/system.sh
+0
-3
No files found.
scripts/start.sh
View file @
2d8ee993
# Check system setup.
if
grep
-q
"^PasswordAuthentication yes"
/etc/ssh/sshd_config
\
||
!
grep
-q
"^PasswordAuthentication no"
/etc/ssh/sshd_config
;
then
echo
echo
"The SSH server on this machine permits password-based login."
echo
"Add your SSH public key to
$HOME
/.ssh/authorized_keys, check"
echo
"check that you can log in without a password, set the option"
echo
"'PasswordAuthentication no' in /etc/ssh/sshd_config, and then"
echo
"restart the machine."
exit
fi
# Gather information from the user.
if
[
-z
"
$PUBLIC_HOSTNAME
"
]
;
then
echo
echo
"Enter the hostname you want to assign to this machine."
...
...
@@ -18,6 +31,7 @@ fi
if
[
-z
"
$STORAGE_ROOT
"
]
;
then
if
[
!
-d
/home/user-data
]
;
then
useradd
-m
user-data
;
fi
STORAGE_ROOT
=
/home/user-data
mkdir
-p
$STORAGE_ROOT
fi
.
scripts/system.sh
...
...
scripts/system.sh
View file @
2d8ee993
...
...
@@ -20,8 +20,5 @@ if [ -z "$DISABLE_FIREWALL" ]; then
ufw
--force
enable
;
fi
# Mount the storage volume.
export
STORAGE_ROOT
=
/home/ubuntu/storage
mkdir
-p
storage
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