matthew wall
|
c7ebf9815d
|
ensure that weewx runs after install. debian behavior is not the same as redhat or suse.
|
2024-07-04 18:20:32 -04:00 |
|
matthew wall
|
55a367df77
|
use a process counting technique that does not break and that does not depend on systemd
|
2024-07-04 18:02:14 -04:00 |
|
matthew wall
|
491a2a0ae7
|
punt validation of lat/lon
|
2024-07-04 16:16:59 -04:00 |
|
matthew wall
|
99c414f48b
|
quote the arg to number match
|
2024-07-04 15:57:33 -04:00 |
|
matthew wall
|
80f0f44302
|
fix lat/lon number check
|
2024-07-04 15:34:09 -04:00 |
|
Matthew Wall
|
8d5116dada
|
always start weewx on new install. on an upgrade, only start weewx if it was running before the upgrade. ignore systemd presets.
|
2024-07-04 13:13:57 -04:00 |
|
Matthew Wall
|
0cd2398126
|
make the count invocation robust
|
2024-07-04 05:46:06 -04:00 |
|
Matthew Wall
|
7eaa62e9af
|
fixed typo in check for running instances
|
2024-07-03 23:51:40 -04:00 |
|
Matthew Wall
|
11427f6644
|
start only if weewxd was already running. use presets on redhat. iterate instances for systemd units, but cfgs not yet captured.
|
2024-07-03 22:40:49 -04:00 |
|
Matthew Wall
|
fc39ee7df2
|
rearrange setup steps to ensure permissions+ownership will apply properly
|
2024-05-06 12:26:41 -04:00 |
|
Matthew Wall
|
4b1335062a
|
fix broken grep invocation
|
2024-05-06 10:26:00 -04:00 |
|
Matthew Wall
|
ad9b745e45
|
set permissions on weewx conf file(s) to 660 in order to protect passwords/tokens
|
2024-04-07 21:04:31 -04:00 |
|
Matthew Wall
|
c983e54a4a
|
use id instead of USER
|
2024-04-06 21:11:24 -04:00 |
|
Matthew Wall
|
ebdc08afb0
|
do not put installing user into weewx group if no installing user defined. addressess issue #952
|
2024-04-06 20:56:55 -04:00 |
|
Matthew Wall
|
991790af5f
|
sanitize lat/lon
|
2024-02-19 09:51:38 -05:00 |
|
Matthew Wall
|
1c805390aa
|
refactor init enable/disable. ensure true for postinst commands. eliminate possible init conflicts, do not just warn about them.
|
2024-02-19 08:22:50 -05:00 |
|
matthew wall
|
daf9519667
|
consolidate scriptlets and maintainer scripts
|
2024-02-11 18:34:44 -05:00 |
|
matthew wall
|
2f97c0e6d4
|
do not chmod recursively on the weewx home directory
|
2024-02-11 15:39:50 -05:00 |
|
matthew wall
|
8672a54eca
|
modify /etc/default/weewx only if there is a conflict with this install. do not create /etc/default/weewx on a new install. remove epel-release as dependency in redhat packages. explicitly invoke the weectl from the to-be-installed package.
|
2024-02-11 00:09:55 -05:00 |
|
Matthew Wall
|
f738a2420e
|
fix permissions for real
|
2024-02-04 21:50:41 -05:00 |
|
matthew wall
|
5dae205302
|
fix permissions on all files in /etc/weewx, /var/lib/weewx, and /var/www/html/weewx
|
2024-02-04 21:28:15 -05:00 |
|
Matthew Wall
|
6cf7f5cd24
|
handle cases where permissions are broken before the installation. fixed typo in rpm user_dir macro. do explicit daemon-reload for rpm systemd unit configuration.
|
2024-02-04 14:32:21 -05:00 |
|
matthew wall
|
0842d05ae4
|
fix logic for putting install user into weewx group
|
2024-02-04 02:09:37 -05:00 |
|
matthew wall
|
5cb3715e4c
|
move aside any existing /etc/default/weewx so that we avoid python2/python3 problems and ensure a working installation. fixed bug in debian postinst GROUP determination.
|
2024-02-04 01:52:29 -05:00 |
|
matthew wall
|
e28ad92849
|
add user who is installing to the weewx group, if appropriate
|
2024-02-01 18:46:17 -05:00 |
|
matthew wall
|
eacd577651
|
convert permissions on every upgrade, not just new install, unless user was modified
|
2024-01-27 00:28:56 -05:00 |
|
Matthew Wall
|
4005e1e9f6
|
use /var/lib/weewx as HOME for weewx on redhat/suse
|
2024-01-24 21:06:21 -05:00 |
|
matthew wall
|
1691dc2fe1
|
force altitude units to a correct value so the installer will not fail when the config is parsed. wish there was some way to do a string and choice in a single debconf template.
|
2024-01-16 09:17:20 -05:00 |
|
matthew wall
|
8dbd8e02f1
|
use better name for variable
|
2024-01-14 09:13:42 -05:00 |
|
matthew wall
|
e96ae9e44f
|
move the init check to postinst
|
2024-01-13 20:31:02 -05:00 |
|
matthew wall
|
96cee34d69
|
for debian package, prefer /usr/lib but fall back to /lib
|
2024-01-12 14:28:16 -05:00 |
|
matthew wall
|
f3497d6aa7
|
provide feedback in postrm. remove unused output from preinst.
|
2024-01-11 08:02:36 -05:00 |
|
matthew wall
|
4ebdd7e27d
|
provide feedback if pre-compile fails
|
2024-01-10 23:58:59 -05:00 |
|
matthew wall
|
fcb43f8769
|
added output in postinst to help diagnose failures
|
2024-01-10 20:23:40 -05:00 |
|
matthew wall
|
18654ee570
|
set permissions and ownership on database and reports directories unconditionally
|
2024-01-08 00:43:50 -05:00 |
|
Matthew Wall
|
f581efd8ba
|
move /etc/default/weewx to post
|
2024-01-07 12:22:05 -05:00 |
|
Matthew Wall
|
2d5e8d1829
|
no need for cat before sed
|
2024-01-07 09:04:37 -05:00 |
|
Matthew Wall
|
333efa44f0
|
forgot to remove no-prompt from station upgrade invocation
|
2024-01-07 08:37:27 -05:00 |
|
Matthew Wall
|
bc08b8d486
|
align debian install/configure functions with rpm
|
2024-01-07 01:14:07 -05:00 |
|
Matthew Wall
|
7345c79cc1
|
align deb and rpm config file handling. enable verbosity for deb package.
|
2024-01-07 00:33:00 -05:00 |
|
Matthew Wall
|
04ff8dba01
|
'weectl station upgrade' now uses --yes instead of --no-prompt. mute the output on debian installs.
|
2024-01-06 21:39:06 -05:00 |
|
Matthew Wall
|
6a2adcd715
|
ignore output from systemctl. use global instead of define for rpm macros.
|
2024-01-06 15:52:47 -05:00 |
|
matthew wall
|
f39cc11306
|
happy new year!
|
2024-01-02 08:45:27 -05:00 |
|
Matthew Wall
|
0367c167a9
|
as per debian guidelines, put the daemon stop in prerm, but the daemon removal in postrm. ensure that both systemd and sysv work on debian systems, for both deb and pip installs. try to keep lintian happy, but it seems to have differences between deb10 and deb12.
|
2024-01-01 21:48:55 -05:00 |
|
Matthew Wall
|
b14c4c3cc0
|
do not make udev installation conditional upon weewx username
|
2023-12-29 13:00:10 -05:00 |
|
matthew wall
|
19e3910f98
|
create user only if it is weewx
|
2023-12-29 01:04:26 -05:00 |
|
matthew wall
|
be1e785dd4
|
refactor postinst functions and parameterize paths
|
2023-12-29 00:17:49 -05:00 |
|
matthew wall
|
4bde8c22ad
|
fix dir check for existing user/group. fix double-percent typo in debian user check.
|
2023-12-28 23:34:11 -05:00 |
|
matthew wall
|
62a411a790
|
user dir might not exist yet, so create it
|
2023-12-28 22:52:06 -05:00 |
|
matthew wall
|
273eed5399
|
put systemd, udev, skin, and extensions into post
|
2023-12-28 22:04:01 -05:00 |
|