Browse Source

add readme.md template

master
filesite 5 months ago
parent
commit
c9a3446978
  1. 10
      funs.sh
  2. 20
      template/readme_beauty.md

10
funs.sh

@ -226,6 +226,10 @@ createShortcuts () {
echo "[InternetShortcut]" > ~/Desktop/视频.url echo "[InternetShortcut]" > ~/Desktop/视频.url
echo "URL=http://${ip}:8182" >> ~/Desktop/视频.url echo "URL=http://${ip}:8182" >> ~/Desktop/视频.url
fi fi
# add shortcuat to tajian.tv
echo "[InternetShortcut]" > ~/Desktop/Ta荐.url
echo "URL=https://tajian.tv" >> ~/Desktop/Ta荐.url
} }
# 删除桌面快捷方式 # 删除桌面快捷方式
@ -244,9 +248,15 @@ upgradeMacheteInContainers () {
name=$1 name=$1
if [ "${name}" == "album" ]; then if [ "${name}" == "album" ]; then
# copy readme.md
docker container cp template/readme_beauty.md machete_album:/var/www/machete/www/girls/
# copy config file
docker container cp template/custom_config_beauty.json machete_album:/var/www/machete/runtime/custom_config.json docker container cp template/custom_config_beauty.json machete_album:/var/www/machete/runtime/custom_config.json
docker exec -it machete_album /var/www/machete/bin/upgrade.sh docker exec -it machete_album /var/www/machete/bin/upgrade.sh
else else
# copy readme.md
docker container cp template/readme_beauty.md machete_vlog:/var/www/machete/www/girls/
# copy config file
docker container cp template/custom_config_videoblog.json machete_vlog:/var/www/machete/runtime/custom_config.json docker container cp template/custom_config_videoblog.json machete_vlog:/var/www/machete/runtime/custom_config.json
docker exec -it machete_vlog /var/www/machete/bin/upgrade.sh docker exec -it machete_vlog /var/www/machete/bin/upgrade.sh
fi fi

20
template/readme_beauty.md

@ -0,0 +1,20 @@
# 家庭相册
Machete基于PHP开发,支持Docker安装、升级,使用方便。
## 使用场景
* 家庭相册,局域网搭建图片、视频网站,在家庭成员之间、不同设备里共享照片、视频
* 摄影工作室,搭建照片集方便客户在手机里远程挑选照片
* 摄影发烧友,收藏、展示自己的图片、视频
## 使用帮助
欢迎加QQ群交流
* <a href="https://jq.qq.com/?_wv=1027&k=WoH3Pv7d" target="_blank">Machete交流群</a>
## 友情链接
* <a href="https://tajian.tv" target="_blank">Ta荐 - 你的聚宝盆</a>
Loading…
Cancel
Save