Skip to content

Commit

Permalink
distro UPDATE latest file changes
Browse files Browse the repository at this point in the history
  • Loading branch information
michalvasko committed Jan 16, 2024
1 parent c44c54d commit 481b5c6
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 10 deletions.
3 changes: 2 additions & 1 deletion distro/pkg/deb/netopeer2.install
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,5 @@ usr/share/man/man1/netopeer2-cli.1
usr/share/man/man8/netopeer2-server.8
usr/lib/systemd/system/netopeer2-server.service
usr/share/yang/modules/netopeer2
usr/share/netopeer2
usr/share/netopeer2/scripts
etc/pam.d/netopeer2.conf
6 changes: 3 additions & 3 deletions distro/pkg/deb/netopeer2.postinst
Original file line number Diff line number Diff line change
Expand Up @@ -29,14 +29,14 @@ case "$1" in
NP2_MODULE_PERMS=660 \
NP2_MODULE_OWNER=root \
NP2_MODULE_GROUP=netconf \
bash /usr/share/netopeer2/setup.sh
bash /usr/share/netopeer2/scripts/setup.sh
env - \
SYSREPOCFG_EXECUTABLE=sysrepocfg \
OPENSSL_EXECUTABLE=openssl \
bash /usr/share/netopeer2/merge_hostkey.sh
bash /usr/share/netopeer2/scripts/merge_hostkey.sh
env - \
SYSREPOCFG_EXECUTABLE=sysrepocfg \
bash /usr/share/netopeer2/merge_config.sh
bash /usr/share/netopeer2/scripts/merge_config.sh
;;

abort-upgrade|abort-remove|abort-deconfigure)
Expand Down
2 changes: 1 addition & 1 deletion distro/pkg/deb/netopeer2.prerm
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ case "$1" in
NP2_MODULE_PERMS=660 \
NP2_MODULE_OWNER=root \
NP2_MODULE_GROUP=netconf \
bash /usr/share/netopeer2/remove.sh
bash /usr/share/netopeer2/scripts/remove.sh
;;
upgrade|failed-upgrade|abort-install|abort-upgrade|disappear)
;;
Expand Down
11 changes: 6 additions & 5 deletions distro/pkg/rpm/netopeer2.spec
Original file line number Diff line number Diff line change
Expand Up @@ -80,15 +80,15 @@ export NP2_MODULE_PERMS=600
export NP2_MODULE_OWNER=root
export LN2_MODULE_DIR=%{_datadir}/yang/modules/libnetconf2

%{_datadir}/netopeer2/setup.sh
%{_datadir}/netopeer2/merge_hostkey.sh
%{_datadir}/netopeer2/merge_config.sh
%{_datadir}/netopeer2/scripts/setup.sh
%{_datadir}/netopeer2/scripts/merge_hostkey.sh
%{_datadir}/netopeer2/scripts/merge_config.sh

%systemd_post netopeer2-server.service

%preun server
set -e
%{_datadir}/netopeer2/remove.sh
%{_datadir}/netopeer2/scripts/remove.sh


%files
Expand All @@ -100,7 +100,8 @@ set -e
%{_datadir}/man/man8/netopeer2-server.8.gz
%{_unitdir}/netopeer2-server.service
%{_datadir}/yang/modules/netopeer2/*.yang
%{_datadir}/netopeer2/*.sh
%{_datadir}/netopeer2/scripts/*.sh
%{_sysconfdir}/pam.d/netopeer2.conf
%dir %{_datadir}/yang/modules/netopeer2/
%dir %{_datadir}/netopeer2/
%dir %{_libdir}/netopeer2-server/
Expand Down

0 comments on commit 481b5c6

Please sign in to comment.