updated comments at top of scripts

This commit is contained in:
ahriman 2019-03-26 02:07:20 +00:00
parent ee20aca3af
commit f6341c40b5
7 changed files with 18 additions and 3 deletions

View File

@ -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

View File

@ -2,6 +2,7 @@
# ---------------------------------------------------------------------------
# makeuser - tilde.institute new user creation
# Usage: makeuser [-h|--help] <username> <email> "<pubkey>"
# ben@gbmor.dev
# ---------------------------------------------------------------------------
PROGNAME=${0##*/}

View File

@ -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 ##
##############################################

View File

@ -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" ")

View File

@ -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

View File

@ -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"

View File

@ -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