mirror of
				https://gitlab.crans.org/bde/nk20
				synced 2025-11-04 09:12:11 +01:00 
			
		
		
		
	By default, automatically change directory to /var/www/note_kfet and source the Python virtual environment in the .bashrc file
Signed-off-by: Yohann D'ANELLO <yohann.danello@gmail.com>
This commit is contained in:
		@@ -36,3 +36,13 @@
 | 
			
		||||
    dest: /etc/cron.d/note
 | 
			
		||||
    owner: root
 | 
			
		||||
    group: root
 | 
			
		||||
 | 
			
		||||
- name: Set default directory to /var/www/note_kfet
 | 
			
		||||
  lineinfile:
 | 
			
		||||
    path: /etc/skel/.bashrc
 | 
			
		||||
    line: 'cd /var/www/note_kfet'
 | 
			
		||||
 | 
			
		||||
- name: Automatically source Python virtual environment
 | 
			
		||||
  lineinfile:
 | 
			
		||||
    path: /etc/skel/.bashrc
 | 
			
		||||
    line: 'source /var/www/note_kfet/env/bin/activate'
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user