#!/bin/bash

# 记录日志的文件
LOGFILE="/share_data/devpi/devpi.log"

# 当前时间
echo "Running at $(date)" >> $LOGFILE

# 执行 devpi 命令并将输出追加到日志文件
{
	            echo "Executing: devpi use http://localhost:48080"
		                    devpi use http://localhost:48080

				                        echo "Executing: devpi login root --password=''"
							                        devpi login root --password=''

										                            echo "Executing: devpi index -c root/dev"
													                                    devpi index -c root/dev

																	                                        echo "Executing: devpi use root/dev"
																						                                        devpi use root/dev
																											                                } >> $LOGFILE 2>&1

