Compare commits
No commits in common. "541be78bef249a858933cb2695f9e3e44576d096" and "c28dc76afe5ebcf959f86047c5da81d068080406" have entirely different histories.
541be78bef
...
c28dc76afe
11
add_user.sh
11
add_user.sh
@ -31,8 +31,6 @@ mkdir -p /home/$LOGIN/Maildir/Trash/cur
|
|||||||
mkdir -p /home/$LOGIN/Maildir/Trash/new
|
mkdir -p /home/$LOGIN/Maildir/Trash/new
|
||||||
mkdir -p /home/$LOGIN/Maildir/Trash/tmp
|
mkdir -p /home/$LOGIN/Maildir/Trash/tmp
|
||||||
|
|
||||||
chmod -R 0700 /home/$LOGIN/Maildir
|
|
||||||
|
|
||||||
cp -r /root/helpers/public_html /home/$LOGIN/
|
cp -r /root/helpers/public_html /home/$LOGIN/
|
||||||
sed -i "s/<<USER>>/$LOGIN/g" /home/$LOGIN/public_html/index.php
|
sed -i "s/<<USER>>/$LOGIN/g" /home/$LOGIN/public_html/index.php
|
||||||
sed -i "s/<<USER>>/$LOGIN/g" /home/$LOGIN/public_html/parts/header.php
|
sed -i "s/<<USER>>/$LOGIN/g" /home/$LOGIN/public_html/parts/header.php
|
||||||
@ -40,7 +38,7 @@ sed -i "s/<<USER>>/$LOGIN/g" /home/$LOGIN/public_html/blog/index.php
|
|||||||
|
|
||||||
mkdir -p /home/$LOGIN/.config/weechat/
|
mkdir -p /home/$LOGIN/.config/weechat/
|
||||||
|
|
||||||
cp /root/helpers/irc.conf /home/$LOGIN/.config/weechat
|
cp irc.conf /home/$LOGIN/.config/weechat
|
||||||
|
|
||||||
mkdir -p /home/$LOGIN/.config/tmux
|
mkdir -p /home/$LOGIN/.config/tmux
|
||||||
cat << EOF > /home/$LOGIN/.config/tmux/tmux.conf
|
cat << EOF > /home/$LOGIN/.config/tmux/tmux.conf
|
||||||
@ -89,13 +87,6 @@ EOF
|
|||||||
# end gemini
|
# end gemini
|
||||||
|
|
||||||
chown -R $LOGIN:$LOGIN /home/$LOGIN/
|
chown -R $LOGIN:$LOGIN /home/$LOGIN/
|
||||||
|
|
||||||
mkdir -p /home/$LOGIN/.ssh
|
|
||||||
mkdir -p /home/$LOGIN/.gnupg
|
|
||||||
|
|
||||||
chmod 0700 /home/$LOGIN/.ssh
|
|
||||||
chmod 0700 /home/$LOGIN/.gnupg
|
|
||||||
|
|
||||||
sendmail -f void1st@tylda.org $LOGIN@tylda.org < welcome.txt
|
sendmail -f void1st@tylda.org $LOGIN@tylda.org < welcome.txt
|
||||||
|
|
||||||
echo 524288000 > "$USER_CG/memory.max" # 500 MB RAM
|
echo 524288000 > "$USER_CG/memory.max" # 500 MB RAM
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user