mirror of
https://github.com/pandorafms/pandorafms.git
synced 2025-07-30 01:05:39 +02:00
11830 changes on pandora_gotty packages
This commit is contained in:
parent
19e6673ff9
commit
7d09ed7503
3
extras/pandora_gotty/build_all_docker.sh
Executable file
3
extras/pandora_gotty/build_all_docker.sh
Executable file
@ -0,0 +1,3 @@
|
|||||||
|
#Build RPM
|
||||||
|
docker build -t pandora_gotty_builder -f Dockerfile-RPM .
|
||||||
|
docker run --rm -it -v `pwd`:/root/pandora_gotty pandora_gotty_builder /root/pandora_gotty/build_rpm.sh
|
@ -1,2 +0,0 @@
|
|||||||
docker build -t pandora_gotty_builder .
|
|
||||||
docker run --rm -it -v `pwd`:/root/pandora_gotty pandora_gotty_builder /root/pandora_gotty/build.sh
|
|
@ -1,5 +1,5 @@
|
|||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
|
#RPM
|
||||||
VERSION=$(grep '%define version' pandora_gotty.spec | awk '{print $3}')
|
VERSION=$(grep '%define version' pandora_gotty.spec | awk '{print $3}')
|
||||||
mkdir -p pandora_gotty-${VERSION}
|
mkdir -p pandora_gotty-${VERSION}
|
||||||
cp src/* pandora_gotty-${VERSION}/
|
cp src/* pandora_gotty-${VERSION}/
|
||||||
@ -10,3 +10,4 @@ rpmbuild -ba pandora_gotty.spec
|
|||||||
rm -rf pandora_gotty-${VERSION}
|
rm -rf pandora_gotty-${VERSION}
|
||||||
mv ${HOME}/rpmbuild/RPMS/x86_64/pandora_gotty* .
|
mv ${HOME}/rpmbuild/RPMS/x86_64/pandora_gotty* .
|
||||||
|
|
||||||
|
#DEB
|
@ -25,15 +25,13 @@ rm -rf $RPM_BUILD_ROOT
|
|||||||
mkdir -p $RPM_BUILD_ROOT/%{_bindir}
|
mkdir -p $RPM_BUILD_ROOT/%{_bindir}
|
||||||
mkdir -p %{buildroot}/etc/pandora_gotty/
|
mkdir -p %{buildroot}/etc/pandora_gotty/
|
||||||
cp %{name} $RPM_BUILD_ROOT/%{_bindir}
|
cp %{name} $RPM_BUILD_ROOT/%{_bindir}
|
||||||
cp pandora_gotty_ssh.conf %{buildroot}/etc/pandora_gotty/
|
cp pandora_gotty.conf %{buildroot}/etc/pandora_gotty/
|
||||||
cp pandora_gotty_telnet.conf %{buildroot}/etc/pandora_gotty/
|
|
||||||
%clean
|
%clean
|
||||||
rm -Rf $RPM_BUILD_ROOT
|
rm -Rf $RPM_BUILD_ROOT
|
||||||
|
|
||||||
%files
|
%files
|
||||||
%defattr(-,root,root,-)
|
%defattr(-,root,root,-)
|
||||||
%config(noreplace) /etc/pandora_gotty/pandora_gotty_ssh.conf
|
%config(noreplace) /etc/pandora_gotty/pandora_gotty.conf
|
||||||
%config(noreplace) /etc/pandora_gotty/pandora_gotty_telnet.conf
|
|
||||||
%{_bindir}/%{name}
|
%{_bindir}/%{name}
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
36
extras/pandora_gotty/src/pandora_gotty.conf
Normal file
36
extras/pandora_gotty/src/pandora_gotty.conf
Normal file
@ -0,0 +1,36 @@
|
|||||||
|
//Pandora Gotty
|
||||||
|
|
||||||
|
// [bool] Permit clients to write to the TTY
|
||||||
|
permit_write = true
|
||||||
|
|
||||||
|
// [bool] Enable basic authentication
|
||||||
|
enable_basic_auth = true
|
||||||
|
|
||||||
|
// [string] Default username and password of basic authentication (user:pass)
|
||||||
|
// To enable basic authentication, set `true` to `enable_basic_auth`
|
||||||
|
credential = "pandora:Pandor4!"
|
||||||
|
|
||||||
|
// [bool] Permit clients to send command line arguments in URL (e.g. http://example.com:8080/?arg=AAA&arg=BBB)
|
||||||
|
permit_arguments = true
|
||||||
|
|
||||||
|
// [bool] Enable random URL generation
|
||||||
|
enable_random_url = true
|
||||||
|
|
||||||
|
// [int] Default length of random strings appended to URL
|
||||||
|
// To enable random URL generation, set `true` to `enable_random_url`
|
||||||
|
random_url_length = 32
|
||||||
|
|
||||||
|
// [bool] Enable TLS/SSL
|
||||||
|
// enable_tls = false
|
||||||
|
|
||||||
|
// [string] Default TLS certificate file path
|
||||||
|
// tls_crt_file = "~/.gotty.crt"
|
||||||
|
|
||||||
|
// [string] Default TLS key file path
|
||||||
|
// tls_key_file = "~/.gotty.key"
|
||||||
|
|
||||||
|
// [bool] Enable client certificate authentication
|
||||||
|
// enable_tls_client_auth = false
|
||||||
|
|
||||||
|
// [string] Certificate file of CA for client certificates
|
||||||
|
// tls_ca_crt_file = "~/.gotty.ca.crt"
|
@ -1,4 +0,0 @@
|
|||||||
#to be fill
|
|
||||||
lkdslkds
|
|
||||||
sdjkfhasjdf
|
|
||||||
kdsjfslkjdhfa
|
|
@ -1,4 +0,0 @@
|
|||||||
#to be fill
|
|
||||||
dlksdlkfjs
|
|
||||||
sldjfslkjdf
|
|
||||||
kjdfhksjhdkjlfsh
|
|
Loading…
x
Reference in New Issue
Block a user