Skip to content
This repository has been archived by the owner on Sep 2, 2018. It is now read-only.

Commit

Permalink
Fix path issues due to removal of base prompt
Browse files Browse the repository at this point in the history
  • Loading branch information
LordRalex committed Jan 31, 2016
1 parent 926ee26 commit 646bea2
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
10 changes: 5 additions & 5 deletions lib/scripts/create_user.sh
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
#!/bin/bash

useradd -m -d $1$2 -s /bin/false -p $(openssl passwd -1 $3) $2
useradd -m -d $1/$2 -s /bin/false -p $(openssl passwd -1 $3) $2
usermod -G scalesuser $2

chown root:root $1$2
chmod 755 $1$2
chown root:root $1/$2
chmod 755 $1/$2

mkdir $1$2/public $1$2/backups
chown $2:scalesuser $1$2/*
mkdir $1/$2/public $1/$2/backups
chown $2:scalesuser $1/$2/*
2 changes: 1 addition & 1 deletion lib/scripts/remove_user.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/bin/bash

userdel -r $2
rm -rf $1$2
rm -rf $1/$2

0 comments on commit 646bea2

Please sign in to comment.