瀏覽代碼

sudo check

pull/1/head
azlux 8 年之前
父節點
當前提交
f667036300
共有 1 個檔案被更改,包括 10 行新增5 行删除
  1. +10
    -5
      install.sh

+ 10
- 5
install.sh 查看文件

@@ -1,7 +1,12 @@
#!/bin/sh

cp log2ram.service /etc/systemd/system/log2ram.service
cp log2ram /usr/local/bin/log2ram
systemctl enable log2ram

echo "Reboot to activate log2ram"
if [ `id -u` -eq 0 ]
then
cp log2ram.service /etc/systemd/system/log2ram.service
cp log2ram /usr/local/bin/log2ram
systemctl enable log2ram
echo "Reboot to activate log2ram"
else
echo "You need to be ROOT (sudo can be used)"
fi

Loading…
取消
儲存