From c90edc48ba492662afd93da563029d1b9015d838 Mon Sep 17 00:00:00 2001 From: "YinCunKun.YCK" Date: Thu, 7 Nov 2024 11:26:14 +0800 Subject: [PATCH] update template --- .DS_Store | Bin 0 -> 6148 bytes .computenest/config.yaml | 22 +++++++++++++++++++++- .computenest/ros_templates/template.yaml | 19 ------------------- 3 files changed, 21 insertions(+), 20 deletions(-) create mode 100644 .DS_Store diff --git a/.DS_Store b/.DS_Store new file mode 100644 index 0000000000000000000000000000000000000000..de5fc53990f435abad0808330fef4a844df945b2 GIT binary patch literal 6148 zcmeH~F^LL|d(t0@2UW`S!Tku=OfJ-;({to>)nK zk%75DdH(StZPNiy=_3~Vxh+TmDIf);fE17d zD^ehj@!ft!&!k6@0#aZd3i$V-(495eI^)y95F-FNupGv9%o1er0$G!-lNFlf^kCU) zF@|_O+R2jF)nx1J?XVm^EbnYS#n7y`!wM6c)qsK&kOB(@wml#H{6EwGn*SFqN~M4l zcryiTIDMUte5pKJUtZ7am#q4_(aE@+;nz<96F-U%^f2xhUywD~I$5FVM<8TSkOKdz Fz!Qau5~2VA literal 0 HcmV?d00001 diff --git a/.computenest/config.yaml b/.computenest/config.yaml index ea8fddf..7e301fc 100644 --- a/.computenest/config.yaml +++ b/.computenest/config.yaml @@ -96,4 +96,24 @@ ImageBuilder: #!/bin/bash wget https://github.com/cloudreve/Cloudreve/releases/download/3.8.3/cloudreve_3.8.3_linux_amd64.tar.gz tar -zxvf cloudreve_3.8.3_linux_amd64.tar.gz - chmod +x ./cloudreve \ No newline at end of file + chmod +x ./cloudreve + + cat > /etc/systemd/system/cloudreve.service < /root/output.log 2>&1 & + TimeoutStartSec=0 + + [Install] + WantedBy=multi-user.target + EOF + + systemctl enable cloudreve + systemctl start cloudreve + + ARGUS_VERSION=3.5.7 /bin/bash -c "$(curl -sS https://cms-agent-ap-southeast-1.oss-ap-southeast-1-internal.aliyuncs.com/Argus/agent_install_ecs-1.7.sh)" >> /root/install_cms_agent.log 2>&1 \ No newline at end of file diff --git a/.computenest/ros_templates/template.yaml b/.computenest/ros_templates/template.yaml index e492c03..f690b96 100644 --- a/.computenest/ros_templates/template.yaml +++ b/.computenest/ros_templates/template.yaml @@ -101,7 +101,6 @@ Parameters: Label: en: VSwitch ID zh-cn: 交换机实例ID - Default: '' AssociationProperty: 'ALIYUN::ECS::VSwitch::VSwitchId' AssociationPropertyMetadata: VpcId: VpcId @@ -153,24 +152,6 @@ Resources: InternetMaxBandwidthOut: 5 IoOptimized: optimized MaxAmount: 1 - RunInstallCommand: - Type: ALIYUN::ECS::RunCommand - Properties: - InstanceIds: - Fn::GetAtt: - - InstanceGroup - - InstanceIds - Type: RunShellScript - Sync: true - Timeout: 3600 - CommandContent: - Fn::Sub: - - | - nohup ./cloudreve > output.log 2>&1 & - sleep 10 - ARGUS_VERSION=3.5.7 /bin/bash -c "$(curl -sS https://cms-agent-${RegionId}.oss-${RegionId}-internal.aliyuncs.com/Argus/agent_install_ecs-1.7.sh)" >> /root/install_cms_agent.log 2>&1 - - RegionId: - Ref: ALIYUN::Region Outputs: ServerAddress: Description: