Initial commit

This commit is contained in:
Charlie Root 2025-03-01 00:58:18 +01:00
commit 529efd53a1
140 changed files with 10310 additions and 0 deletions

22
sudo_cmd/radius-sync.sh Executable file
View file

@ -0,0 +1,22 @@
#!/bin/sh
# ver.20070502-01
DATA=`/bin/date "+%Y%m%d%H%M%S"`;
BASEDIR="/home/web/admin.consiagnet.it/www/petar";
TOOLDIR=`pwd`;
RADIUS_QUEUEDIR="${BASEDIR}/queue";
RADIUS_ETC_DIR="/usr/local/etc/raddb";
RADIUS_SRC_USER="users.queue";
RADIUS_DST_USER="users";
cd ${RADIUS_QUEUEDIR}
if [ -f ${RADIUS_ETC_DIR}/${RADIUS_DST_USER} ]; then
cp ${RADIUS_ETC_DIR}/${RADIUS_DST_USER} ${RADIUS_ETC_DIR}/${RADIUS_DST_USER}.${DATA}.bak;
fi
cp ${RADIUS_QUEUEDIR}/${RADIUS_SRC_USER} ${RADIUS_ETC_DIR}/${RADIUS_DST_USER};
/usr/bin/killall -hup radiusd