initial commit
This commit is contained in:
commit
d84861949f
92 files changed
+8425
No files matched your search
Executable
+14
@@ -0,0 +1,14 @@
|
||||
#!/bin/bash
|
||||
|
||||
function switch_srv() {
|
||||
local cmd=$1
|
||||
ssh container@nathan systemctl --user $cmd kas_srv
|
||||
return $?
|
||||
}
|
||||
|
||||
function copy_to_server(){
|
||||
rsync -rti --delete --stats server/build/install/server/* container@nathan:/var/containers/vol/kas/server
|
||||
return $?
|
||||
}
|
||||
|
||||
./gradlew :server:installDist && switch_srv stop && copy_to_server && switch_srv start
|
||||
Reference in new issue
Block a user