Commit 2022c403 authored by Cédric Le Ninivin's avatar Cédric Le Ninivin

Rename slaptest in slapos-test

parent 217d871b
...@@ -45,7 +45,7 @@ Directory Organisation ...@@ -45,7 +45,7 @@ Directory Organisation
- slapos-node/ : Template to build package - slapos-node/ : Template to build package
- Makefile : Makefile to build slapos and add files for package - Makefile : Makefile to build slapos and add files for package
- slapos-start : shell script that will be run on startup (called by slapos-node daemon) - slapos-start : shell script that will be run on startup (called by slapos-node daemon)
- slaptest : python script to check user configuration and cron file - slapos-test : python script to check user configuration and cron file
- template/ : template files for package (cron.d, service) - template/ : template files for package (cron.d, service)
- slapos/ : to build slapos. Contain buildout.cfg.in - slapos/ : to build slapos. Contain buildout.cfg.in
...@@ -76,4 +76,4 @@ About cron file ...@@ -76,4 +76,4 @@ About cron file
Main cron file is situated in slapos-node/template/slapos-node.cron.d Main cron file is situated in slapos-node/template/slapos-node.cron.d
Prepare script will copy this one in the debian directory. Prepare script will copy this one in the debian directory.
WARNING: if you update cron, do not forget to update slaptest which check cron file WARNING: if you update cron, do not forget to update slapos-test which check cron file
\ No newline at end of file \ No newline at end of file
...@@ -10,7 +10,7 @@ install: all ...@@ -10,7 +10,7 @@ install: all
cd slapos; make install cd slapos; make install
mkdir -p $(DESTDIR)/usr/sbin/ mkdir -p $(DESTDIR)/usr/sbin/
cp slapos-start $(DESTDIR)/usr/sbin/ cp slapos-start $(DESTDIR)/usr/sbin/
cp slaptest $(DESTDIR)/usr/sbin/ cp slapos-test $(DESTDIR)/usr/sbin/
cp $(DESTDIR)/opt/slapos/bin/slapos $(DESTDIR)/usr/sbin/ cp $(DESTDIR)/opt/slapos/bin/slapos $(DESTDIR)/usr/sbin/
# Open VPN configuration # Open VPN configuration
mkdir -p $(DESTDIR)/etc/openvpn/ mkdir -p $(DESTDIR)/etc/openvpn/
......
...@@ -366,7 +366,7 @@ class Config: ...@@ -366,7 +366,7 @@ class Config:
for option, value in option_dict.__dict__.items(): for option, value in option_dict.__dict__.items():
setattr(self, option, value) setattr(self, option, value)
# Define logger for register # Define logger for register
self.logger = logging.getLogger('slaptest configuration') self.logger = logging.getLogger('slapos-test configuration')
self.logger.setLevel(logging.DEBUG) self.logger.setLevel(logging.DEBUG)
# add ch to logger # add ch to logger
self.logger.addHandler(ch) self.logger.addHandler(ch)
......
...@@ -87,7 +87,7 @@ Check your config ...@@ -87,7 +87,7 @@ Check your config
Check your config file and your cron file Check your config file and your cron file
+++++++++++++++++++++++++++++++++++++++++ +++++++++++++++++++++++++++++++++++++++++
Run: Run:
# slaptest # slapos-test
This script will check your config file for missing section or parameters This script will check your config file for missing section or parameters
You can use the slapos.cfg.example config file as reference for slapos.cfg. You can use the slapos.cfg.example config file as reference for slapos.cfg.
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment