mirror of
https://github.com/elAgala/server-initializer.git
synced 2026-02-14 05:06:18 +00:00
Add update server before initializing | Fix var assignation issue
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
#!/bin/bash
|
||||
|
||||
function create_user() {
|
||||
username = $1
|
||||
username=$1
|
||||
|
||||
echo "[ USER ]: Starting user setup"
|
||||
sudo useradd $username
|
||||
|
||||
@@ -1,10 +1,10 @@
|
||||
#!/bin/bash
|
||||
|
||||
function config_ssh() {
|
||||
username = $1
|
||||
username=$1
|
||||
|
||||
echo "[ SSH ]: Starting setup"
|
||||
ssh_dir = "/home/$username/.ssh"
|
||||
ssh_dir="/home/$username/.ssh"
|
||||
|
||||
sudo mkdir -p $ssh_dir
|
||||
sudo chmod 700 $ssh_dir
|
||||
|
||||
Reference in New Issue
Block a user