oxen-io / lokinet

Lokinet is an anonymous, decentralized and IP based overlay network for the internet.
https://lokinet.org/
GNU General Public License v3.0
1.77k stars 220 forks source link

useradd: invalid flag for Pre-in RPM Scriptlet #2187

Closed SleepingCrows closed 1 year ago

SleepingCrows commented 1 year ago

Describe the bug The Pre-In Scriptlet provided in Lokinet-0.9.8-1.x86_64.rpm on rpm.oxen.io/opensuse/tumbleweed has a typo for the useradd command flag useradd --badnames, should be useradd --badname

Results in installation failure due to missing user _lokinet

Retrieving: lokinet-0.9.8-1.x86_64 (Oxen Project)                   (2/2),  23.3 KiB
Retrieving: lokinet-0.9.8-1.x86_64.rpm ...........................................[done]
Checking for file conflicts: .....................................................[done]
useradd: unrecognized option '--badnames'
...
Options:
      --badname                 do not check for bad names

Immediate fix for Tumbleweed users: run useradd --groups _loki _lokinet before trying to install the package.

Device and Operating system (please complete the following information):

majestrate commented 1 year ago

fixed by https://github.com/oxen-io/lokinet/commit/f4c4b798ce3a4cf985d3edc487ddf635f78c0d6c