{"id":1334,"date":"2021-06-06T07:19:47","date_gmt":"2021-06-05T22:19:47","guid":{"rendered":"https:\/\/sirius10.net\/blog\/wordpress\/?p=1334"},"modified":"2021-06-06T07:19:49","modified_gmt":"2021-06-05T22:19:49","slug":"post-1334","status":"publish","type":"post","link":"https:\/\/sirius10.net\/blog\/wordpress\/index.php\/2021\/06\/06\/1334\/","title":{"rendered":"Luxeritas \u30c6\u30fc\u30de\u306e\u30a2\u30c3\u30d7\u30c7\u30fc\u30c8"},"content":{"rendered":"\n<p>\u3000WordPress \u306e\u30c6\u30fc\u30de Luxeritas \u304c\u30a2\u30c3\u30d7\u30c7\u30fc\u30c8\u3055\u308c\u3066\u3044\u307e\u3057\u305f\u3002<\/p>\n\n\n\n<p>\u3000<a href=\"https:\/\/thk.kanzae.net\/wp\/settings\/t2354\/\">\u914d\u5e03\u30b5\u30a4\u30c8\u306e\u30da\u30fc\u30b8<\/a> \u3092\u898b\u308b\u3068\u3001\u30a2\u30c3\u30d7\u30c7\u30fc\u30c8\u306e\u65b9\u6cd5\u304c 2 \u7a2e\u985e\u3042\u308b\u3088\u3046\u3067\u3059\u3002\u624b\u52d5\u3067\u4e0a\u66f8\u304d\u3059\u308b\u65b9\u6cd5\u3068\u3001\u30a2\u30c3\u30d7\u30c7\u30fc\u30c8\u7528\u306e\u30c6\u30fc\u30de\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3057\u3001\u305d\u308c\u306b\u5207\u308a\u66ff\u3048\u3066\u304b\u3089 WordPress \u306e\u7ba1\u7406\u753b\u9762\u304b\u3089\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3059\u308b\u65b9\u6cd5\u3067\u3059\u3002<\/p>\n\n\n\n<p>\u3000\u81ea\u52d5\u3067\u30a2\u30c3\u30d7\u30c7\u30fc\u30c8\u3057\u305f\u3044\u3068\u601d\u3063\u305f\u306e\u3067\u3001\u4eca\u56de\u306f\u624b\u52d5\u3067\u3084\u3063\u3066\u307f\u307e\u3059\u3002<\/p>\n\n\n\n<blockquote class=\"wp-block-quote is-layout-flow wp-block-quote-is-layout-flow\"><p>Luxeritas \u306e zip \u30d5\u30a1\u30a4\u30eb\u3092\u89e3\u51cd\u3057\u3001FTP \u30bd\u30d5\u30c8\u3084 SCP \u306a\u3069\u3092\u5229\u7528\u3057\u3066\u3001<br>\/wp-content\/themes\/luxeritas<br>\u306b\u30d5\u30a1\u30a4\u30eb\u3092\u4e0a\u66f8\u304d\u3057\u3066\u304f\u3060\u3055\u3044\u3002<br><\/p><cite>https:\/\/thk.kanzae.net\/wp\/settings\/t2354\/<\/cite><\/blockquote>\n\n\n\n<p>\u3000\u5b50\u30c6\u30fc\u30de\u306f\u30a2\u30c3\u30d7\u30c7\u30fc\u30c8\u3059\u3079\u304d\u3067\u306a\u3044\u3068\u66f8\u3044\u3066\u3042\u308b\u306e\u3067\u3001\u30a2\u30c3\u30d7\u30c7\u30fc\u30c8\u306f\u672c\u4f53\u306e\u307f\u884c\u3044\u307e\u3059\u3002<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">\u30c6\u30fc\u30de\u672c\u4f53\u306e\u30c0\u30a6\u30f3\u30ed\u30fc\u30c9<\/h2>\n\n\n\n<p>\u3000\u30c6\u30fc\u30de\u672c\u4f53\u306f\u3001cron \u306b\u767b\u9332\u3057\u3066\u81ea\u52d5\u3067\u30c0\u30a6\u30f3\u30ed\u30fc\u30c9\u3055\u305b\u305f\u3044\u306e\u3067\u3001\u30c0\u30a6\u30f3\u30ed\u30fc\u30c9\u7528\u306e SHELL \u30b9\u30af\u30ea\u30d7\u30c8\u3092\u4f5c\u308a\u307e\u3057\u305f\u3002\u30c0\u30a6\u30f3\u30ed\u30fc\u30c9\u5148\u3092 \/home\/pi\/Wordpress\/Luxeritas \u306b\u3057\u307e\u3057\u305f\u3002\u4e88\u3081\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u306f\u4f5c\u3063\u3066\u3042\u308a\u307e\u3059\u3002<\/p>\n\n\n\n<p>Get.sh<\/p>\n\n\n\n<pre class=\"wp-block-code file\"><code>#!\/bin\/bash\n\ncd \/home\/pi\/Wordpress\/Luxeritas\n\nwget -O download.html -q \"https:\/\/thk.kanzae.net\/wp\/dl\/\"\n\nline=$(grep 'class=\"download\"' download.html | head -1 | sed -e 's\/&lt;\\\/a&gt;\/&lt;\\\/a&gt;\\n\/g' | head -1)\n\ntarget=$(expr \"${line}\" : '.*a href=\"\\(http&#91;s]&#91;^\"]*\\)\".*')\nfile=$(expr \"${line}\" : '.*title=\"\\(&#91;^\"]*\\)\".*' | sed -e \"s\/ \/-\/g\" | tr &#91;A-Z] &#91;a-z]).zip\n\nif &#91; ! -f \"${file}\" ]; then\n    echo \"Down load ${file}\"\n    wget -O \"${file}\" \"${target}\"\nfi<\/code><\/pre>\n\n\n\n<p>\u3000\u3053\u306e SHELL \u30b9\u30af\u30ea\u30d7\u30c8\u3092\u5b9f\u884c\u3059\u308c\u3070\u30c0\u30a6\u30f3\u30ed\u30fc\u30c9\u3055\u308c\u307e\u3059\u3002<\/p>\n\n\n\n<p>\u30c0\u30a6\u30f3\u30ed\u30fc\u30c9\u5bfe\u8c61\u30d5\u30a1\u30a4\u30eb\u304c\u65e2\u306b\u6709\u3063\u305f\u3089\u30c0\u30a6\u30f3\u30ed\u30fc\u30c9\u306f\u3057\u307e\u305b\u3093\u3002\u30c0\u30a6\u30f3\u30ed\u30fc\u30c9\u5143\u306e\u30da\u30fc\u30b8\u306b\u5909\u66f4\u304c\u6709\u3063\u305f\u6642\u306f\u4fee\u6b63\u3057\u306a\u3044\u3068\u3044\u3051\u307e\u305b\u3093\u304c\u3001\u3053\u308c\u3092 cron \u306b\u767b\u9332\u3057\u3066\u5b9a\u671f\u7684\u306b\u5b9f\u884c\u3059\u308c\u3070\u6700\u65b0\u7248\u3092\u81ea\u52d5\u3067\u30c0\u30a6\u30f3\u30ed\u30fc\u30c9\u3057\u307e\u3059\u3002<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">\u30c6\u30fc\u30de\u306e\u30a2\u30c3\u30d7\u30c7\u30fc\u30c8<\/h2>\n\n\n\n<p>\u3000\u6b21\u306b\u3001\u30a2\u30c3\u30d7\u30c7\u30fc\u30c8\u3082\u9593\u9055\u3044\u304c\u306a\u3044\u3088\u3046\u306b SHELL \u30b9\u30af\u30ea\u30d7\u30c8\u306b\u3057\u307e\u3059\u3002<\/p>\n\n\n\n<p>update.sh<\/p>\n\n\n\n<pre class=\"wp-block-code file\"><code>#!\/bin\/bash\n\nfile=$1\ntarget_dir=WordPress \u306e\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\/wp-content\/themes\n\nif &#91; ! -f \"${file}\" ]; then\n    echo \"$0 zip \u30d5\u30a1\u30a4\u30eb\u306e\u30d5\u30eb\u30d1\u30b9\"\n    exit 1\nfi\n\ncd \"${target_dir}\"\n\nsudo unzip \"${file}\"\nsudo chown -R www-data:www-data \"${target_dir}\/luxeritas\"<\/code><\/pre>\n\n\n\n<p>\u3000\u6b21\u306e\u3088\u3046\u306b\u5b9f\u884c\u3057\u307e\u3059\u3002<\/p>\n\n\n\n<p class=\"console\">$ .\/update.sh \u672c\u4f53zip\u306e\u30d5\u30eb\u30d1\u30b9<\/p>\n\n\n\n<p>\u3000\u4e00\u5fdc\u3001\u5c55\u958b\u5f8c\u306e\u30d5\u30a1\u30a4\u30eb\u306e\u6240\u6709\u8005\u3092 Apache \u306e\u30e6\u30fc\u30b6 www-data \u306b\u5909\u66f4\u3057\u3066\u3044\u307e\u3059\u3002\u4e0a\u66f8\u304d\u3067\u306e\u5c55\u958b\u306a\u306e\u3067\u3001\u30b4\u30df\u304c\u6b8b\u308b\u3068\u601d\u3044\u307e\u3059\u304c\u3001\u4e0b\u624b\u306b\u524a\u9664\u3059\u308b\u3068\u52d5\u304b\u306a\u304f\u306a\u308b\u306e\u3067\u305d\u306e\u307e\u307e\u6b8b\u3057\u307e\u3059\u3002<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">\u78ba\u8a8d<\/h2>\n\n\n\n<p>\u3000WordPress \u306e\u7ba1\u7406\u753b\u9762\u304b\u3089 Luxeritas \u306e\u30d0\u30fc\u30b8\u30e7\u30f3\u3092\u78ba\u8a8d\u3057\u3066\u307f\u307e\u3057\u305f\u3002<\/p>\n\n\n\n<div class=\"wp-block-image\"><figure class=\"aligncenter size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"315\" height=\"146\" src=\"https:\/\/sirius10.net\/blog\/wordpress\/wp-content\/uploads\/2021\/06\/Luxeritas.png\" alt=\"\" class=\"wp-image-1335\" srcset=\"https:\/\/sirius10.net\/blog\/wordpress\/wp-content\/uploads\/2021\/06\/Luxeritas.png 315w, https:\/\/sirius10.net\/blog\/wordpress\/wp-content\/uploads\/2021\/06\/Luxeritas-300x139.png 300w\" sizes=\"auto, (max-width: 315px) 100vw, 315px\" \/><figcaption>\u30d0\u30fc\u30b8\u30e7\u30f3\u306e\u78ba\u8a8d<\/figcaption><\/figure><\/div>\n\n\n\n<p>\u3000\u3061\u3083\u3093\u3068\u30d0\u30fc\u30b8\u30e7\u30f3\u304c\u4e0a\u304c\u3063\u305f\u3088\u3046\u3067\u3059\u3002Get.sh \u3092\u3001\u30c6\u30fc\u30de\u672c\u4f53\u306e\u30c0\u30a6\u30f3\u30ed\u30fc\u30c9\u5f8c\u306b\u3001\u3053\u306e update.sh \u3092\u5b9f\u884c\u3059\u308b\u3088\u3046\u306b\u66f8\u304d\u63db\u3048\u308c\u3070\u5b8c\u5168\u306b\u81ea\u52d5\u5316\u3067\u304d\u307e\u3059\u3002\u3057\u304b\u3057\u3001\u3061\u3087\u3063\u3068\u4e0d\u5b89\u306a\u306e\u3067\u3057\u3070\u3089\u304f\u306f\u3001\u30c0\u30a6\u30f3\u30ed\u30fc\u30c9\u306f\u81ea\u52d5\u3067\u3084\u308a\u3001\u30a2\u30c3\u30d7\u30c7\u30fc\u30c8\u306f\u624b\u52d5\u3067\u3059\u308b\u3053\u3068\u306b\u3057\u307e\u3057\u305f\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u3000WordPress \u306e\u30c6\u30fc\u30de Luxeritas \u304c\u30a2\u30c3\u30d7\u30c7\u30fc\u30c8\u3055\u308c\u3066\u3044\u307e\u3057\u305f\u3002 \u3000\u914d\u5e03\u30b5\u30a4\u30c8\u306e\u30da\u30fc\u30b8 \u3092\u898b\u308b\u3068\u3001\u30a2\u30c3\u30d7\u30c7\u30fc\u30c8\u306e\u65b9\u6cd5\u304c 2 \u7a2e\u985e\u3042\u308b\u3088\u3046\u3067\u3059\u3002\u624b\u52d5\u3067\u4e0a\u66f8\u304d\u3059\u308b\u65b9\u6cd5\u3068\u3001\u30a2\u30c3\u30d7\u30c7\u30fc\u30c8\u7528\u306e\u30c6\u30fc\u30de\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[15],"tags":[],"class_list":["post-1334","post","type-post","status-publish","format-standard","hentry","category-wordpress"],"_links":{"self":[{"href":"https:\/\/sirius10.net\/blog\/wordpress\/index.php\/wp-json\/wp\/v2\/posts\/1334","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/sirius10.net\/blog\/wordpress\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/sirius10.net\/blog\/wordpress\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/sirius10.net\/blog\/wordpress\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/sirius10.net\/blog\/wordpress\/index.php\/wp-json\/wp\/v2\/comments?post=1334"}],"version-history":[{"count":9,"href":"https:\/\/sirius10.net\/blog\/wordpress\/index.php\/wp-json\/wp\/v2\/posts\/1334\/revisions"}],"predecessor-version":[{"id":1350,"href":"https:\/\/sirius10.net\/blog\/wordpress\/index.php\/wp-json\/wp\/v2\/posts\/1334\/revisions\/1350"}],"wp:attachment":[{"href":"https:\/\/sirius10.net\/blog\/wordpress\/index.php\/wp-json\/wp\/v2\/media?parent=1334"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/sirius10.net\/blog\/wordpress\/index.php\/wp-json\/wp\/v2\/categories?post=1334"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/sirius10.net\/blog\/wordpress\/index.php\/wp-json\/wp\/v2\/tags?post=1334"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}