Call ln -srf from lua

i8-beta changed/i8/sphere-release-8.9-8.el8.1
Arkady L. Shane 10 months ago
parent 24a020ef46
commit 814e684b7c
Signed by: tigro
GPG Key ID: 1EC08A25C9DB2503

@ -6,7 +6,7 @@
Name: sphere-release
Version: %{major}.%{minor}
Release: 8%{?dist}
Release: 8%{?dist}.1
Summary: %{distro} release files
License: GPLv2
URL: https://msvsphere-os.ru
@ -361,14 +361,14 @@ return 0
/usr/bin/flatpak remote-delete --system flathub ||:
/usr/bin/flatpak remote-delete --system fedora ||:
%post -p <lua> identity-arm
posix.symlink("/usr/share/sphere-release/EULA-ARM", "/usr/share/sphere-release/EULA")
%posttrans -p <lua> identity-arm
os.execute("/usr/bin/ln -srf /usr/share/sphere-release/EULA-ARM /usr/share/sphere-release/EULA")
%preun identity-arm
/usr/bin/rm -f /usr/share/sphere-release/EULA
%post -p <lua> identity-server
posix.symlink("/usr/share/sphere-release/EULA-SERVER", "/usr/share/sphere-release/EULA")
%posttrans -p <lua> identity-server
os.execute("/usr/bin/ln -srf /usr/share/sphere-release/EULA-SERVER /usr/share/sphere-release/EULA")
%preun identity-server
/usr/bin/rm -f /usr/share/sphere-release/EULA
@ -438,6 +438,9 @@ posix.symlink("/usr/share/sphere-release/EULA-SERVER", "/usr/share/sphere-releas
%changelog
* Tue Mar 19 2024 Arkady L. Shane <tigro@msvsphere-os.ru> - 8.9-8.1
- call ln -srf from lua
* Mon Mar 18 2024 Arkady L. Shane <tigro@msvsphere-os.ru> - 8.9-8
- Use lua for some scriptlets to avoid missing /bin/sh

Loading…
Cancel
Save