Name: wsh Version: 5.0.94 Release: 1%{?dist} Summary: Whitestar Shell Service License: GPL Source0: https://whitestar.io/repo/wsh/4.9.129/5.0.94/wsh.tar.xz BuildArch: noarch ExclusiveArch: %{nodejs_arches} noarch BuildRequires: make Requires: java-17, telnet %description Whitestar Shell Service %prep %autosetup -n %{name} %build ESLINT=0 NODE_ENV=production make %install make install-service DESTDIR=%{buildroot} PREFIX=/home/whitestar/wsh %files %doc README.md %attr(0744, whitestar, whitestar) /home/whitestar/wsh/* %attr(0744, whitestar, whitestar) /home/whitestar/wsh/dist/* %attr(0755, whitestar, whitestar) /home/whitestar/wsh/dist/libs/* # Script to be run after package is installed %post # # Create the user: whitestar with password whitestar and admin privileges # password is encrypted below using crypt() command outside this routine # # perl -e 'print crypt("whitestar", "salt"),"\n"' # echo "##" echo "## Creating whitestar userid...and giving it admin authority" echo "##" id -u whitestar || ( echo "Creating new User: whitestar" useradd -m -p saVcBwwVb0fMY whitestar ) usermod -aG wheel whitestar chown -R whitestar /home/whitestar/wsh chown -R whitestar /home/whitestar/wsh/dist cat > /etc/systemd/system/wsh.service <