File tree 14 files changed +206
-3
lines changed
sig-archive_dated_dir_create
14 files changed +206
-3
lines changed Original file line number Diff line number Diff line change 1
1
#! /bin/bash
2
+ #
3
+ # This program is free software: you can redistribute it and/or modify
4
+ # it under the terms of the GNU General Public License as published by
5
+ # the Free Software Foundation, either version 3 of the License, or
6
+ # (at your option) any later version.
7
+ #
8
+ # This program is distributed in the hope that it will be useful,
9
+ # but WITHOUT ANY WARRANTY; without even the implied warranty of
10
+ # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
11
+ # GNU General Public License for more details.
12
+ #
13
+ # You should have received a copy of the GNU General Public License
14
+ # along with this program. If not, see <http://www.gnu.org/licenses/>.
15
+ #
2
16
# ##############################################################################
3
17
# this script creates dated/weekly dirs in archive section of site easily.
4
18
# /glftpd/site/ARCHIVE/FLAC#2011#DAY = /glftpd/site/ARCHIVE/FLAC/2011-01-01 etc
Original file line number Diff line number Diff line change 1
1
#! /bin/bash
2
+ #
3
+ # This program is free software: you can redistribute it and/or modify
4
+ # it under the terms of the GNU General Public License as published by
5
+ # the Free Software Foundation, either version 3 of the License, or
6
+ # (at your option) any later version.
7
+ #
8
+ # This program is distributed in the hope that it will be useful,
9
+ # but WITHOUT ANY WARRANTY; without even the implied warranty of
10
+ # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
11
+ # GNU General Public License for more details.
12
+ #
13
+ # You should have received a copy of the GNU General Public License
14
+ # along with this program. If not, see <http://www.gnu.org/licenses/>.
15
+ #
2
16
# ##############################################################################
3
17
# script to move section sub directories to archive
4
18
# eg, "/glftpd/site/FLAC#2012-#/glftpd/site/ARCHIVE/FLAC#FLAC" will search for
Original file line number Diff line number Diff line change 1
1
#! /bin/bash
2
+ #
3
+ # This program is free software: you can redistribute it and/or modify
4
+ # it under the terms of the GNU General Public License as published by
5
+ # the Free Software Foundation, either version 3 of the License, or
6
+ # (at your option) any later version.
7
+ #
8
+ # This program is distributed in the hope that it will be useful,
9
+ # but WITHOUT ANY WARRANTY; without even the implied warranty of
10
+ # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
11
+ # GNU General Public License for more details.
12
+ #
13
+ # You should have received a copy of the GNU General Public License
14
+ # along with this program. If not, see <http://www.gnu.org/licenses/>.
15
+ #
2
16
# ##############################################################################
3
17
# script to limit number of subdirectories in a glftpd section directory.
4
18
GLFTPDLOG=" /glftpd/ftp-data/logs/glftpd.log"
Original file line number Diff line number Diff line change 1
1
#! /bin/bash
2
+ #
3
+ # This program is free software: you can redistribute it and/or modify
4
+ # it under the terms of the GNU General Public License as published by
5
+ # the Free Software Foundation, either version 3 of the License, or
6
+ # (at your option) any later version.
7
+ #
8
+ # This program is distributed in the hope that it will be useful,
9
+ # but WITHOUT ANY WARRANTY; without even the implied warranty of
10
+ # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
11
+ # GNU General Public License for more details.
12
+ #
13
+ # You should have received a copy of the GNU General Public License
14
+ # along with this program. If not, see <http://www.gnu.org/licenses/>.
15
+ #
2
16
# ##############################################################################
3
17
# accidentally ran a script that changed all the timestamps of the directories?
4
18
# this script will change all sub directories of a given path to the time stamp
Original file line number Diff line number Diff line change 1
1
#! /bin/bash
2
+ #
3
+ # This program is free software: you can redistribute it and/or modify
4
+ # it under the terms of the GNU General Public License as published by
5
+ # the Free Software Foundation, either version 3 of the License, or
6
+ # (at your option) any later version.
7
+ #
8
+ # This program is distributed in the hope that it will be useful,
9
+ # but WITHOUT ANY WARRANTY; without even the implied warranty of
10
+ # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
11
+ # GNU General Public License for more details.
12
+ #
13
+ # You should have received a copy of the GNU General Public License
14
+ # along with this program. If not, see <http://www.gnu.org/licenses/>.
15
+ #
2
16
# ##############################################################################
3
17
# crontab this script to run daily 5 minutes before midnight.
4
18
# 55 23 * * * /glftpd/bin/sig-eom.sh >/dev/null 2>&1
Original file line number Diff line number Diff line change 1
1
#! /bin/bash
2
+ #
3
+ # This program is free software: you can redistribute it and/or modify
4
+ # it under the terms of the GNU General Public License as published by
5
+ # the Free Software Foundation, either version 3 of the License, or
6
+ # (at your option) any later version.
7
+ #
8
+ # This program is distributed in the hope that it will be useful,
9
+ # but WITHOUT ANY WARRANTY; without even the implied warranty of
10
+ # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
11
+ # GNU General Public License for more details.
12
+ #
13
+ # You should have received a copy of the GNU General Public License
14
+ # along with this program. If not, see <http://www.gnu.org/licenses/>.
15
+ #
2
16
# ##############################################################################
3
17
# this script will search for incomplete/nosfv/nonfo symlinks, and compile them
4
18
# into a nice list inside (default) /site/INCOMPLETE/<SECTION>/
Original file line number Diff line number Diff line change 1
1
#! /bin/bash
2
2
#
3
+ # This program is free software: you can redistribute it and/or modify
4
+ # it under the terms of the GNU General Public License as published by
5
+ # the Free Software Foundation, either version 3 of the License, or
6
+ # (at your option) any later version.
7
+ #
8
+ # This program is distributed in the hope that it will be useful,
9
+ # but WITHOUT ANY WARRANTY; without even the implied warranty of
10
+ # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
11
+ # GNU General Public License for more details.
12
+ #
13
+ # You should have received a copy of the GNU General Public License
14
+ # along with this program. If not, see <http://www.gnu.org/licenses/>.
15
+ #
16
+ # ##############################################################################
3
17
# for existing users, please run the script sig-mask_group_init.sh first! this
4
18
# will mask everyones GROUP without affecting any userfiles.
5
19
#
Original file line number Diff line number Diff line change 1
1
#! /bin/bash -
2
-
2
+ #
3
+ # This program is free software: you can redistribute it and/or modify
4
+ # it under the terms of the GNU General Public License as published by
5
+ # the Free Software Foundation, either version 3 of the License, or
6
+ # (at your option) any later version.
7
+ #
8
+ # This program is distributed in the hope that it will be useful,
9
+ # but WITHOUT ANY WARRANTY; without even the implied warranty of
10
+ # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
11
+ # GNU General Public License for more details.
12
+ #
13
+ # You should have received a copy of the GNU General Public License
14
+ # along with this program. If not, see <http://www.gnu.org/licenses/>.
15
+ #
16
+ # ##############################################################################
3
17
# place this script in your /glftpd/etc folder and run it.
4
18
# this will retouch the passwd file to mask all users groups to 'glftpd'
5
19
#
6
20
# you only need to run this script once!
21
+ # ##############################################################################
22
+ # don't edit below here
23
+ # ##############################################################################
7
24
8
25
touch passwd.ren
9
26
echo " backing up passwd file"
10
- cp passwd passwd.ren. backup
27
+ cp passwd passwd.backup
11
28
echo " masking existing users group"
29
+
12
30
cat passwd | while read line; do
13
- awk -F " :" ' {print $1":"$2":"$3":0:"$5":"$6":"$7}' >> passwd.ren
31
+ awk -F " :" ' {print $1":"$2":"$3":0:"$5":"$6":"$7}' >> passwd.ren
14
32
done
33
+
34
+ rm -f passwd
35
+ mv passwd.ren passwd
15
36
echo " masking complete!"
Original file line number Diff line number Diff line change 1
1
#! /bin/bash
2
+ #
3
+ # This program is free software: you can redistribute it and/or modify
4
+ # it under the terms of the GNU General Public License as published by
5
+ # the Free Software Foundation, either version 3 of the License, or
6
+ # (at your option) any later version.
7
+ #
8
+ # This program is distributed in the hope that it will be useful,
9
+ # but WITHOUT ANY WARRANTY; without even the implied warranty of
10
+ # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
11
+ # GNU General Public License for more details.
12
+ #
13
+ # You should have received a copy of the GNU General Public License
14
+ # along with this program. If not, see <http://www.gnu.org/licenses/>.
15
+ #
2
16
# ##############################################################################
3
17
# this script outputs EOM stats to a txt file.
4
18
# use sig-eom.sh to run this script at the end of each month.
Original file line number Diff line number Diff line change 1
1
#! /bin/bash
2
+ #
3
+ # This program is free software: you can redistribute it and/or modify
4
+ # it under the terms of the GNU General Public License as published by
5
+ # the Free Software Foundation, either version 3 of the License, or
6
+ # (at your option) any later version.
7
+ #
8
+ # This program is distributed in the hope that it will be useful,
9
+ # but WITHOUT ANY WARRANTY; without even the implied warranty of
10
+ # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
11
+ # GNU General Public License for more details.
12
+ #
13
+ # You should have received a copy of the GNU General Public License
14
+ # along with this program. If not, see <http://www.gnu.org/licenses/>.
15
+ #
2
16
# ##############################################################################
3
17
# script to scan nuked directories, check for \[*\] COMPLETE * directories and
4
18
# then rescan to make sure whether it is complete or incomplete. if the release
Original file line number Diff line number Diff line change 1
1
#! /bin/bash
2
+ #
3
+ # This program is free software: you can redistribute it and/or modify
4
+ # it under the terms of the GNU General Public License as published by
5
+ # the Free Software Foundation, either version 3 of the License, or
6
+ # (at your option) any later version.
7
+ #
8
+ # This program is distributed in the hope that it will be useful,
9
+ # but WITHOUT ANY WARRANTY; without even the implied warranty of
10
+ # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
11
+ # GNU General Public License for more details.
12
+ #
13
+ # You should have received a copy of the GNU General Public License
14
+ # along with this program. If not, see <http://www.gnu.org/licenses/>.
15
+ #
2
16
# ##############################################################################
3
17
# this script copies user files from /ftp-data/users to /ftp-data/users_purged
4
18
# for backup purposes before purge. the user is then fully purged from the site.
Original file line number Diff line number Diff line change 1
1
#! /bin/bash
2
+ #
3
+ # This program is free software: you can redistribute it and/or modify
4
+ # it under the terms of the GNU General Public License as published by
5
+ # the Free Software Foundation, either version 3 of the License, or
6
+ # (at your option) any later version.
7
+ #
8
+ # This program is distributed in the hope that it will be useful,
9
+ # but WITHOUT ANY WARRANTY; without even the implied warranty of
10
+ # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
11
+ # GNU General Public License for more details.
12
+ #
13
+ # You should have received a copy of the GNU General Public License
14
+ # along with this program. If not, see <http://www.gnu.org/licenses/>.
15
+ #
2
16
# ##############################################################################
3
17
# script to monitor S.M.A.R.T data on your hdds, PASSED/FAILED, multi line.
4
18
# ##############################################################################
Original file line number Diff line number Diff line change 1
1
#! /bin/bash
2
+ #
3
+ # This program is free software: you can redistribute it and/or modify
4
+ # it under the terms of the GNU General Public License as published by
5
+ # the Free Software Foundation, either version 3 of the License, or
6
+ # (at your option) any later version.
7
+ #
8
+ # This program is distributed in the hope that it will be useful,
9
+ # but WITHOUT ANY WARRANTY; without even the implied warranty of
10
+ # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
11
+ # GNU General Public License for more details.
12
+ #
13
+ # You should have received a copy of the GNU General Public License
14
+ # along with this program. If not, see <http://www.gnu.org/licenses/>.
15
+ #
2
16
# ##############################################################################
3
17
# script to output system temperatures of cpu/hdds
4
18
# ##############################################################################
Original file line number Diff line number Diff line change 1
1
#! /bin/bash
2
+ #
3
+ # This program is free software: you can redistribute it and/or modify
4
+ # it under the terms of the GNU General Public License as published by
5
+ # the Free Software Foundation, either version 3 of the License, or
6
+ # (at your option) any later version.
7
+ #
8
+ # This program is distributed in the hope that it will be useful,
9
+ # but WITHOUT ANY WARRANTY; without even the implied warranty of
10
+ # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
11
+ # GNU General Public License for more details.
12
+ #
13
+ # You should have received a copy of the GNU General Public License
14
+ # along with this program. If not, see <http://www.gnu.org/licenses/>.
15
+ #
2
16
# ##############################################################################
3
17
# this script will remove all zero byte files in $PWD on execution. it will
4
18
# also skip *-missing files as they are exempt.
You can’t perform that action at this time.
0 commit comments