fixed installers
This commit is contained in:
@@ -8,7 +8,7 @@ import os
|
||||
const installername = os.base(os.dir(@FILE))
|
||||
|
||||
// install imagemagick will return true if it was already installed
|
||||
pub fn install() ! {
|
||||
pub fn install_() ! {
|
||||
console.print_header('install ${installername}')
|
||||
if !osal.done_exists('install_${installername}') {
|
||||
osal.package_install('imagemagick')!
|
||||
|
||||
@@ -27,7 +27,7 @@ fn startupcmd() ![]zinit.ZProcessNewArgs {
|
||||
return res
|
||||
}
|
||||
|
||||
fn running() !bool {
|
||||
fn running_() !bool {
|
||||
mut installer := get()!
|
||||
// THIS IS EXAMPLE CODEAND NEEDS TO BE CHANGED
|
||||
// this checks health of imagemagick
|
||||
@@ -64,7 +64,7 @@ fn stop_post() ! {
|
||||
//////////////////// following actions are not specific to instance of the object
|
||||
|
||||
// checks if a certain version or above is installed
|
||||
fn installed() !bool {
|
||||
fn installed_() !bool {
|
||||
// THIS IS EXAMPLE CODEAND NEEDS TO BE CHANGED
|
||||
// res := os.execute('${osal.profile_path_source_and()} imagemagick version')
|
||||
// if res.exit_code != 0 {
|
||||
@@ -87,14 +87,14 @@ fn ulist_get() !ulist.UList {
|
||||
}
|
||||
|
||||
// uploads to S3 server if configured
|
||||
fn upload() ! {
|
||||
fn upload_() ! {
|
||||
// installers.upload(
|
||||
// cmdname: 'imagemagick'
|
||||
// source: '${gitpath}/target/x86_64-unknown-linux-musl/release/imagemagick'
|
||||
// )!
|
||||
}
|
||||
|
||||
fn install() ! {
|
||||
fn install_() ! {
|
||||
console.print_header('install imagemagick')
|
||||
// THIS IS EXAMPLE CODEAND NEEDS TO BE CHANGED
|
||||
// mut url := ''
|
||||
@@ -125,7 +125,7 @@ fn install() ! {
|
||||
// )!
|
||||
}
|
||||
|
||||
fn build() ! {
|
||||
fn build_() ! {
|
||||
// url := 'https://github.com/threefoldtech/imagemagick'
|
||||
|
||||
// make sure we install base on the node
|
||||
@@ -154,7 +154,7 @@ fn build() ! {
|
||||
// )!
|
||||
}
|
||||
|
||||
fn destroy() ! {
|
||||
fn destroy_() ! {
|
||||
// mut systemdfactory := systemd.new()!
|
||||
// systemdfactory.destroy("zinit")!
|
||||
|
||||
|
||||
Reference in New Issue
Block a user