forked from Spark/ssm-services
		
	I've forgotten that I've tried to fix the damn script!
This commit is contained in:
		
							
								
								
									
										11
									
								
								init.d/hostname
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										11
									
								
								init.d/hostname
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,11 @@ | ||||
| #!/usr/bin/env watchman | ||||
|  | ||||
| if [[ -e "/etc/hostname" ]]; then | ||||
| 	cfg_hostname="$(</etc/hostname)" | ||||
| else | ||||
| 	cfg_hostname='localhost' | ||||
| fi | ||||
|  | ||||
| service_type='oneshot' | ||||
| service_command='hostname' | ||||
| service_args="$cfg_hostname" | ||||
		Reference in New Issue
	
	Block a user