Merge v3 with the generic web server in the shared workspace
This commit is contained in:
+7
-3
@@ -41,9 +41,13 @@ def main [destination?: path] {
|
||||
}
|
||||
let units = ($destination | path join etc systemd system)
|
||||
mkdir ($units | path join multi-user.target.wants)
|
||||
^cp --remove-destination ($here | path join chat chat.service) ($units | path join chat.service)
|
||||
if $env.LAST_EXIT_CODE != 0 { error make {msg: 'chat unit copy failed'} }
|
||||
'' | save --force ($units | path join multi-user.target.wants chat.service)
|
||||
let www = ($destination | path join srv www)
|
||||
mkdir $www
|
||||
^cp --remove-destination ($here | path join web index.html) ($www | path join index.html)
|
||||
if $env.LAST_EXIT_CODE != 0 { error make {msg: 'web page copy failed'} }
|
||||
^cp --remove-destination ($here | path join web web.service) ($units | path join web.service)
|
||||
if $env.LAST_EXIT_CODE != 0 { error make {msg: 'web unit copy failed'} }
|
||||
'' | save --force ($units | path join multi-user.target.wants web.service)
|
||||
let repo = ($here | path join .. | path expand)
|
||||
let snapshot = ($destination | path join src sausage)
|
||||
if ($snapshot | path exists) { rm --recursive --force $snapshot }
|
||||
|
||||
Reference in New Issue
Block a user