代码拉取完成,页面将自动刷新
REPOPATH="/home/ftp/deepin-community-store" #设置软件源目录
while true; do
cd $REPOPATH #进入根目录
pwd #显示路径
#生成文件
#apt-ftparchive packages . > Packages
#apt-ftparchive release . > Release
if [ -f "${REPOPATH}/refresh.flag" ];then
#删除flag
rm ${REPOPATH}/refresh.flag
#进入update阶段
find "${REPOPATH}" -name '*.update' -print0 | xargs -0 file-rename -f -v 's/\.update$//'
#以上来源abcfy2
cd store #进入store目录
for i in `ls` #for循环遍历store目录下的文件
do
if [ -d $i ] ; then #如果当前变量的是目录
cd $i #进入目录
if [ -f 'applist.json' ];then #如果存在特定文件
rm applist.json #删除
cat `find . -name 'app.json' -type f`|jq -s . > applist.json #查找所有的json文件
echo "商店信息写入完毕"
fi
cd ..
fi
done
date
touch ${REPOPATH}/finish-refresh.flag
#以上来源pluto
else
sleep 30
fi
done
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。