From 61252545a59b147e1ba3626d7018b3844673eb7f Mon Sep 17 00:00:00 2001 From: Vitaly Lipatov Date: Wed, 5 Sep 2018 11:35:22 +0300 Subject: [PATCH] 0.0.4-alt1 - remove obsoleted anyssh.ru.conf, fix template for it - example.conf.template: example config (ALT bug #35349) --- .gear/rules | 0 README.md | 1 + TODO | 3 +++ autosshd.spec | 14 ++++++++------ autosshd/doc/README | 6 ------ autosshd/doc/README.md | 10 ++++++++++ 6 files changed, 22 insertions(+), 12 deletions(-) mode change 100755 => 100644 .gear/rules create mode 120000 README.md create mode 100644 TODO mode change 100755 => 100644 autosshd.spec delete mode 100755 autosshd/doc/README create mode 100644 autosshd/doc/README.md diff --git a/.gear/rules b/.gear/rules old mode 100755 new mode 100644 diff --git a/README.md b/README.md new file mode 120000 index 0000000..dc5a868 --- /dev/null +++ b/README.md @@ -0,0 +1 @@ +autosshd/doc/README.md \ No newline at end of file diff --git a/TODO b/TODO new file mode 100644 index 0000000..928d0fa --- /dev/null +++ b/TODO @@ -0,0 +1,3 @@ +1. Перейти на RSA 2048 +2. Программа настройки должна понимать параметры anyssh ? +3. Нет шаблона конфига для настраиваемого через setup режима diff --git a/autosshd.spec b/autosshd.spec old mode 100755 new mode 100644 index dd23b87..d3835ed --- a/autosshd.spec +++ b/autosshd.spec @@ -4,8 +4,8 @@ %define autossh_dir /var/lib/autosshd Name: autosshd -Version: 0.0.3 -Release: alt11 +Version: 0.0.4 +Release: alt1 Summary: System administration - AutoSSH system level service @@ -46,8 +46,6 @@ EOF mkdir -p %buildroot/%autossh_dir/.ssh/ #echo "StrictHostKeyChecking no" > %buildroot%autossh_dir/.ssh/config -mkdir -p %buildroot%_docdir/%name/ - install -D -m754 etc/rc.d/init.d/autosshd %buildroot%_initdir/%name # TODO: we need automate filling of this config install -D -m644 etc/sysconfig/autosshd %buildroot%_sysconfigdir/%name @@ -75,7 +73,7 @@ cp lib/systemd/system/autosshd.service %buildroot/lib/systemd/system/autosshd.se %preun_service %name %files -%doc doc/* +%doc doc/README.md %attr(750,%autossh_user,%autossh_group) %dir %autossh_dir/ %config(noreplace) %attr(750,%autossh_user,%autossh_group) %autossh_dir/.ssh/ %config(noreplace) %_sysconfigdir/%name @@ -89,9 +87,13 @@ cp lib/systemd/system/autosshd.service %buildroot/lib/systemd/system/autosshd.se %_datadir/%name/autosshd.setup %_datadir/%name/autosshd.setup.user %_bindir/autosshd-ssh -/lib/systemd/system/autosshd.service +/lib/systemd/system/autosshd.service %changelog +* Wed Sep 05 2018 Vitaly Lipatov 0.0.4-alt1 +- remove obsoleted anyssh.ru.conf, fix template for it +- example.conf.template: example config (ALT bug #35349) + * Mon Oct 12 2015 Danil Mikhailov 0.0.3-alt11 - Fix inheritance error diff --git a/autosshd/doc/README b/autosshd/doc/README deleted file mode 100755 index e1c7475..0000000 --- a/autosshd/doc/README +++ /dev/null @@ -1,6 +0,0 @@ -# Config for autossh pretuned for anyssh.ru service -# Manual: http://wiki.etersoft.ru/Autosshd -# -# 1) Create config as /etc/autossh.d/example.com.conf.template -# 2) Run service -# service autosshd start \ No newline at end of file diff --git a/autosshd/doc/README.md b/autosshd/doc/README.md new file mode 100644 index 0000000..82496a5 --- /dev/null +++ b/autosshd/doc/README.md @@ -0,0 +1,10 @@ + +System service for run autossh with anyssh.ru service support. + +Manual in russian: http://wiki.etersoft.ru/Autosshd + +Using: + +# Create config by template /etc/autossh.d/example.com.conf.template +# Run service: + service autosshd start -- 2.11.4.GIT