Commit graph

106 commits

Author SHA1 Message Date
Wes Barnett
a2ba2aa201
Fix bash test with double brackets 2019-03-09 13:25:55 -05:00
Wes Barnett
905ed72380
Detect if PPID is empty and then ignore
Fixes #25.
2019-03-08 14:14:16 -05:00
Wes Barnett
18a26d36e8
Detect if in chroot and disable dbus
Fixes #23.
2019-03-08 14:12:53 -05:00
Wes Barnett
1dabe290b6
Don't symlink linux kernel modules.
Fixes #22, #21, and #19.
2018-08-16 07:17:24 -04:00
Wes Barnett
39dee2be1f
Remove old module symlinks on pre snapshot
Only do this if LINK_MODULES is set to yes. This prevents old symlinks
getting in the way of other packages.

Fixes #21.
2018-08-15 20:06:35 -04:00
James Barnett
24891dfce3
don't print broken symlinks 2018-02-28 15:35:26 -05:00
James Barnett
561551ba53
use -v to test if var is set and printf 2018-02-06 21:19:14 -05:00
Maxim Baz
4e671baf51
Use -n, rename variable, specify exit code 0 2018-02-04 13:59:08 +01:00
Maxim Baz
8edd181ab7
Allow to occasionally skip snap-pac run 2018-02-04 13:41:24 +01:00
James Barnett
dee6ff6a08
change default desc limit to 72 chars 2018-02-02 21:12:31 -05:00
James Barnett
a0d0a823f1
change default description limit 2018-02-02 21:07:19 -05:00
James Barnett
ca7bfe6663
List packages in post description instead of pacman command
Fixes #17.
2018-02-01 15:57:01 -05:00
James Barnett
94a78681b7
fix link modules functionality 2018-01-22 12:12:14 -05:00
James Barnett
ff5554d304
add option to link kernel modules 2018-01-19 11:06:00 -05:00
James Barnett
7bff82da28
restored package_updated 2018-01-19 11:02:12 -05:00
James Barnett
2a33eafc7c
rm extra space 2018-01-18 19:09:42 -05:00
James Barnett
5db7eb1468
some cleanup 2018-01-18 19:06:37 -05:00
James Barnett
d4813a7fdc
create read_config function 2018-01-18 13:47:44 -05:00
James Barnett
65fdd716e0
change PRE_POST to SNAPSHOT 2018-01-17 21:21:07 -05:00
James Barnett
f9b2c62ab7
unset vars in loop; fix PRE_POST defaults 2018-01-17 21:14:23 -05:00
James Barnett
4f5ce6554a
add option to link kernel modules 2018-01-17 20:58:33 -05:00
James Barnett
a60e16f8e1
Merge branch 'master' into modules 2018-01-17 20:57:26 -05:00
James Barnett
9530dd9a1b
Merge branch 'master' of github.com:wesbarnett/snap-pac 2018-01-17 20:33:51 -05:00
James Barnett
4ec3acfee5
Source settings from /etc/snap-pac and not snapper's files 2018-01-17 18:33:32 -05:00
jonasc
c0f92f1cfb
Read configuration values from /etc/snap-pac
Test whether `/etc/snap-pac` is a readable file and then source it.
Set `DESC_LIMIT` only to the default value of `48` if it was not specified in the sourced file.
2018-01-05 15:22:44 +01:00
James Barnett
a6e0cd3287
error tracing 2017-05-31 12:59:48 -04:00
James Barnett
1135776e93
more verbose 2017-04-20 09:28:15 -05:00
James Barnett
3a904dac0e
fix typos 2017-04-20 09:22:30 -05:00
James Barnett
9ebba032da
delete old broken links 2017-04-20 08:45:25 -05:00
James Barnett
e6d48a89ad
remove unused variable 2017-04-20 08:36:29 -05:00
James Barnett
6ad1c1f571
rearrange how package update is detected 2017-04-20 08:36:06 -05:00
James Barnett
76c4151814
initial commit 2017-04-20 08:04:37 -05:00
James Barnett
2f7c44ba21
can't link modules until after 2017-04-18 20:34:53 -05:00
James Barnett
edc4e89368
debugging 2017-04-18 20:32:22 -05:00
James Barnett
3bbd2a3152
debugging 2017-04-18 20:29:27 -05:00
James Barnett
9f8816b103
bug with creating directory 2017-04-18 20:28:48 -05:00
James Barnett
a238bd40f5
mark kernel snaps as important 2017-04-18 20:26:36 -05:00
James Barnett
ce7516c681
PACMAN_KEEP_OLD_KERNELS goes in root snapper config 2017-04-18 20:20:02 -05:00
James Barnett
67a89013cd
and 2017-04-18 20:18:26 -05:00
James Barnett
f67d8dab2c
debugging 2017-04-18 20:17:21 -05:00
James Barnett
9a8e7ac65f
debugging 2017-04-18 20:14:24 -05:00
James Barnett
d5d7fe5956
debugging 2017-04-18 20:11:53 -05:00
James Barnett
bc059a3f04
move everything to post snapshot 2017-04-18 20:07:53 -05:00
James Barnett
4151fcb35c
check if kernel is updated 2017-04-18 20:00:44 -05:00
James Barnett
d92c259b70
initial commit 2017-04-18 19:51:26 -05:00
James Barnett
05e10dcff3
split up snapper command to catch errors 2017-03-25 07:30:32 -05:00
James Barnett
325c8f45c3
udpate docs, rm unneeded checks 2017-03-22 18:11:27 -05:00
James Barnett
a54039effe
rm warning cmd (not used); update error fmt 2017-03-21 16:11:23 -05:00
James Barnett
c41c294dba
Get parent of script call (may not be pacman)
Check for pre or post args, since no longer checking command. Update manpage.
2017-03-20 07:54:21 -05:00
James Barnett
59eb91c5f8
move warning to hook 2017-02-14 13:57:09 -06:00