grep -q
всегда пустая строка, [ -n '' ]
всегда будет falseif cat /etc/passwd | cut -d: -f1 | grep -q "$CUSTOM_USER"; then
if id $CUSTOM_USER &>/dev/null; then
$ sctl() { sudo systemctl "$@"; systemctl status "${@:2}" --lines 0 --no-pager 2>/dev/null; }
$ sctl restart mongodb
● mongodb.service - High-performance, schema-free document-oriented database
Loaded: loaded (/usr/lib/systemd/system/mongodb.service; disabled; vendor preset: disabled)
Active: active (running) since Пт 2016-06-10 10:32:56 MSK; 13ms ago
Main PID: 10048 (mongod)
Tasks: 1 (limit: 512)
CGroup: /system.slice/mongodb.service
└─10048 /usr/bin/mongod --quiet --config /etc/mongodb.conf
#!/bin/sh
":" //# comment; exec /usr/bin/env node --harmony --harmony_destructuring "$0" "$@"
mpv
и at
:$ echo 'mpv http://radio.2kom.ru:8000/SportFm.m3u --o=record.ogg --no-video --end=01:00:00' | at 17:00
#!/bin/bash
в dts-service.shExecStart=/bin/sh -c '/home/dts/bin/dts-service.sh'
find dir ! -perm 0755 -exec chmod 0755 {} \;
find dir ! -user root -exec chown root {} \;
flat-volumes = no
в /etc/pulse/daemon.conf
на основании https://wiki.archlinux.org/index.php/PulseAudio#da...