This website works better with JavaScript.
Home
Help
Sign In
heuzef
/
log2ram
mirror of
https://github.com/azlux/log2ram.git
Watch
1
Star
0
Fork
0
Code
Issues
0
Releases
18
Wiki
Activity
Browse Source
Use env instead of /bin/sh
better for flexible shell
pull/49/head
azlux
6 years ago
parent
e439c5ffdd
commit
16ebd29848
4 changed files
with
6 additions
and
6 deletions
Split View
Diff Options
Show Stats
Download Patch File
Download Diff File
+2
-2
install.sh
+1
-1
log2ram
+1
-1
log2ram.hourly
+2
-2
uninstall.sh
+ 2
- 2
install.sh
View File
@@ -1,9 +1,9 @@
#!/bin/sh
#!/
usr/
bin/
env
sh
[ -d /var/hdd.log ] && echo "ERROR: log2ram still installed. Uninstall first!"
[ -d /var/hdd.log ] && exit 1
if [ $(id -u) -eq 0 ]
if [
"
$(id -u)
"
-eq 0 ]
then
cp log2ram.service /etc/systemd/system/log2ram.service
chmod 644 /etc/systemd/system/log2ram.service
+ 1
- 1
log2ram
View File
@@ -1,4 +1,4 @@
#!/bin/sh
#!/
usr/
bin/
env
sh
. /etc/log2ram.conf
+ 1
- 1
log2ram.hourly
View File
@@ -1,3 +1,3 @@
#!/bin/sh
#!/
usr/
bin/
env
sh
systemctl reload log2ram
+ 2
- 2
uninstall.sh
View File
@@ -1,6 +1,6 @@
#!/bin/sh
#!/
usr/
bin/
env
sh
if [ $(id -u) -eq 0 ]
if [
"
$(id -u)
"
-eq 0 ]
then
service log2ram stop
systemctl disable log2ram
Write
Preview
Loading…
Cancel
Save