updated comments at top of scripts
This commit is contained in:
parent
ee20aca3af
commit
f6341c40b5
|
@ -1,5 +1,8 @@
|
|||
#!/usr/local/bin/python3 -I
|
||||
|
||||
# Lists currently connected users for https://tilde.institute/stats
|
||||
# ben@gbmor.dev
|
||||
|
||||
from sys import exit
|
||||
import subprocess
|
||||
|
||||
|
|
|
@ -2,6 +2,7 @@
|
|||
# ---------------------------------------------------------------------------
|
||||
# makeuser - tilde.institute new user creation
|
||||
# Usage: makeuser [-h|--help] <username> <email> "<pubkey>"
|
||||
# ben@gbmor.dev
|
||||
# ---------------------------------------------------------------------------
|
||||
|
||||
PROGNAME=${0##*/}
|
||||
|
|
|
@ -7,7 +7,7 @@ import random
|
|||
## Uses a skeleton motd plus a random quote ##
|
||||
## to produce a motd with a nifty quote. ##
|
||||
##------------------------------------------##
|
||||
## Created by ahriman - ahriman@falte.red ##
|
||||
## Created by ahriman - ben@gbmor.dev ##
|
||||
## --> BSD 3-clause license applies ##
|
||||
##############################################
|
||||
|
||||
|
|
|
@ -1,5 +1,7 @@
|
|||
#!/usr/local/bin/bash
|
||||
|
||||
# Notifies users of newly received mail
|
||||
|
||||
NewMail(){
|
||||
NEWMAIL=$(mailx &)
|
||||
UNREAD=$(echo $NEWMAIL |grep -o 'messages.*new' | cut -f2 -d" ")
|
||||
|
|
|
@ -1,5 +1,9 @@
|
|||
#!/usr/local/bin/python3
|
||||
|
||||
# Lists all the currently registered users extant on the system
|
||||
# for the stats page at https://tilde.institute/stats
|
||||
# ben@gbmor.dev
|
||||
|
||||
import os
|
||||
import sys
|
||||
|
||||
|
|
|
@ -1,5 +1,9 @@
|
|||
#!/usr/local/bin/bash
|
||||
|
||||
# Hopefully, this never has to be used.
|
||||
# Cleans up and removes a user from the system.
|
||||
# ben@gbmor.dev
|
||||
|
||||
echo "Removing user $1 from the system"
|
||||
userdel $1
|
||||
echo "Cleaning /home and /var/www/users"
|
||||
|
|
|
@ -1,7 +1,8 @@
|
|||
#!/usr/local/bin/python2
|
||||
|
||||
# Borrowed from Ben Harris of tilde.team
|
||||
# Thanks Ben!
|
||||
# Called by bin/makeuser to send a 'toot' to the
|
||||
# tilde.institute mastodon account at
|
||||
# https://tilde.zone/@tildeinstitute
|
||||
|
||||
import json
|
||||
import os
|
||||
|
|
Loading…
Reference in New Issue