#!/bin/sh # ===================================================================== # Projet : DARKNODE # Fichier : service/install/install # Auteur : Nicolas "DarkHack" Chapuis (c) 2026 # ================== DARKHACK ================== # [ darkweb.fr - system online ] # Powered by Perplexity, your AI assistant # https://www.perplexity.ai # ============================================== # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, software # distributed under the License is distributed on an "AS IS" BASIS, # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # See the License for the specific language governing permissions and # limitations under the License. # ===================================================================== if ! type "shInclude" > /dev/null 2>&1; then racineSh="${racineSh:-/etc/darksh}"; . "$racineSh/lib/shTools"; shDebugEnable="1";fi shLog="install-darknode" shDebugEnable="${shDebugEnable:-1}" shDebug "$*" rootDarkContainer="${rootDarkContainer:-/etc/darkcontainer}" rootDarkNode="${rootDarkNode:-/etc/darknode}" [ ! -d "$rootDarkContainer" ] && shDebug 0 "exit cause rootDarkContainer is not dir:$rootDarkContainer" && exit 0 [ ! -d "$rootDarkNode" ] && shDebug 0 "exit cause rootDarkNode is not dir:$rootDarkContainer" && exit 0 for param in $*;do if [ "$param" = "force_initv" ];then force_initv=1; shDebug 1 "force_initv" fi done shDebug 1 "$rootDarkNode/global/vars" $( shInclude $rootDarkNode/global/vars ) #if [ -z "$cmdDaemon" ];then cmdDaemon="$(which $pName)";fi #if [ -z "$cmdDaemon" ];then cmdDaemon="$pFolder/$pName";fi shDebug 1 pChrootDir="$pChrootDir"\ pName="$pName"\ pUser="$pUser"\ pGroup="$pGroup"\ pStart="$pStart"\ pStartDebug="$pStartDebug"\ pCacheDir="$pCacheDir"\ pServiceInfo="$pServiceInfo"\ pServiceDoc="$pServiceDoc"\ cmdDaemon="$cmdDaemon"\ cmdDaemonFull="$cmdDaemonFull"\ pLibFiles="$pLibFiles"\ pLibFolders="$pLibFolders"\ pDebugFile="$pDebugFile"\ pParamStart="$pParamStart"\ pParamStartDebug="$pParamStartDebug"\ pPreStart="$pPreStart"\ pParamStartDebug="$pParamStartDebug"\ pMountFolders="$pMountFolders"\ pDirUserGroupRight="$pDirUserGroupRight"\ pDirStruct="$pDirStruct"\ pIdFile="$pIdFile"\ pCopyLib="$pCopyLib"\ #pInitVRequiredStart="bakuba-named-int" pInitVRequiredStop="bakuba-named-int"\ shLog="$shLog"\ pName="$pName"\ pServiceInfo="$pServiceInfo" pServiceDoc="$pServiceDoc"\ cmdDaemon="$cmdDaemon" cmdDaemonFull="$cmdDaemonFull"\ pSystemCtlWants="$pSystemCtlWants" pSystemCtlBefore="$pSystemCtlBefore" pSystemCtlAfter="$pSystemCtlAfter" pSystemCtlRequires="$pSystemCtlRequires"\ pInitVRequiredStart="$pInitVRequiredStart" pInitVRequiredStop="$pInitVRequiredStop"\ pInitVShouldStart="$pInitVShouldStart" pInitVShouldStop="$pInitVShouldStop"\ pInitVDefaultStart="$pInitVDefaultStart" pInitVDefaultStop="$pInitVDefaultStop"\ pUser="$pUser" pGroup="$pGroup"\ pChrootDir="$pChrootDir" pDebugFile="$pDebugFile" pMountFolders="$pMountFolders"\ pIdFile="$pIdFile" pCacheDir="$pCacheDir"\ pParamStart="$pParamStart" pParamStartDebug="$pParamStartDebug"\ pStart="$pStart" pPreStart="$pPreStart" pStartDebug="$pStartDebug"\ pLibFiles="$pLibFiles" pLibFolders="$pLibFolders" pDirStruct="$pDirStruct" pCopyLib="$pCopyLib" pDirUserGroupRight="$pDirUserGroupRight"\ withLinuxKernel="${withLinuxKernel:-}" \ $(which sh) $rootDarkContainer/services/installAptBuild #bakuba/bin/service_install