diff --git a/.DS_Store b/.DS_Store new file mode 100644 index 0000000..de5fc53 Binary files /dev/null and b/.DS_Store differ 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: