We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent dffb7c3 commit 479d47eCopy full SHA for 479d47e
bin/v_update_sys_queue
@@ -18,7 +18,7 @@ source $V_FUNC/shared.func
18
19
# Defining pipe functions
20
restart_pipe() {
21
- for service in $(cat $V_QUEUE/restart.pipe |sort |uniq); do
+ for service in $(cat $V_QUEUE/restart.pipe |awk '!x[$0]++'); do
22
$V_BIN/v_restart_$service
23
done
24
echo > $V_QUEUE/restart.pipe
@@ -37,7 +37,7 @@ traff_pipe() {
37
}
38
39
backup_pipe() {
40
- for user in $(cat $V_QUEUE/backup.pipe |sort |uniq ); do
+ for user in $(cat $V_QUEUE/backup.pipe |awk '!x[$0]++' ); do
41
sed -i "/^$user$/d" $V_QUEUE/backup.pipe
42
bash $V_BIN/v_backup_user $user
43
# Send notification to user
0 commit comments