Init commit
This commit is contained in:
		
							
								
								
									
										13
									
								
								opennebula.post-install
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										13
									
								
								opennebula.post-install
									
									
									
									
									
										Normal file
									
								
							@@ -0,0 +1,13 @@
 | 
			
		||||
#!/bin/sh
 | 
			
		||||
# Append the oneadmin credentials to one_auth to avoid overwriting a file
 | 
			
		||||
# that may already exist
 | 
			
		||||
usermod -m -d /var/lib/one oneadmin
 | 
			
		||||
if [ ! -f /var/lib/one/.one/one_auth ]; then
 | 
			
		||||
  mkdir -p /var/lib/one/.one/
 | 
			
		||||
  echo 'oneadmin:0neadm1n' >> /var/lib/one/.one/one_auth
 | 
			
		||||
  echo ">> You must edit the password in /var/lib/one/.one/one_auth"
 | 
			
		||||
fi
 | 
			
		||||
chown oneadmin:cloud -R /var/log/one /var/lib/one /run/one /run/lock/one
 | 
			
		||||
echo ">> To install required gems run as a local user:"
 | 
			
		||||
echo ">> bundler install --gemfile /usr/share/one/Gemfile"
 | 
			
		||||
exit 0
 | 
			
		||||
		Reference in New Issue
	
	Block a user