mirror of
https://github.com/Mibew/mibew-operator-status-plugin.git
synced 2025-01-22 10:00:30 +03:00
parent
a83f0510ec
commit
4b4f67f051
2
.gitignore
vendored
Normal file
2
.gitignore
vendored
Normal file
@ -0,0 +1,2 @@
|
||||
*.zip
|
||||
*.gz
|
@ -8,11 +8,7 @@ is online or `false` when operator is offline.
|
||||
|
||||
# Install
|
||||
|
||||
1. Get the archive with the plugin sources from link bellow:
|
||||
|
||||
* [mibew-operator-status-plugin.tar.gz](archive/mibew-operator-status-plugin.tar.gz)
|
||||
|
||||
* [mibew-operator-status-plugin.zip](archive/mibew-operator-status-plugin.zip)
|
||||
1. Get the archive with the plugin sources from [release page](https://github.com/everyx/mibew-operator-status-plugin/releases):
|
||||
|
||||
2. Untar/unzip the plugin's archive.
|
||||
|
||||
|
Binary file not shown.
Binary file not shown.
25
build.sh
25
build.sh
@ -1,9 +1,22 @@
|
||||
#!/bin/bash
|
||||
|
||||
plugin_root_dir='Everyx'
|
||||
plugin_target_dir="$plugin_root_dir/Mibew/Plugin/OperatorStatus"
|
||||
mkdir -p $plugin_target_dir
|
||||
cp -R src/* $plugin_target_dir
|
||||
tar -czvf archive/mibew-operator-status-plugin.tar.gz $plugin_root_dir
|
||||
zip -r archive/mibew-operator-status-plugin.zip $plugin_root_dir
|
||||
author='Everyx'
|
||||
|
||||
tmp_dir='/tmp'
|
||||
working_dir=`echo $PWD`
|
||||
|
||||
target_dir="$tmp_dir/$author/Mibew/Plugin/OperatorStatus"
|
||||
mkdir -p $target_dir
|
||||
|
||||
shopt -s extglob
|
||||
cp -R !(*.sh) $target_dir
|
||||
shopt -u extglob
|
||||
|
||||
version=`cat Plugin.php|grep -Po "(?<=return ')(\d.){2}\d{1}"`
|
||||
|
||||
cd $tmp_dir
|
||||
|
||||
tar -czvf $working_dir/mibew-operator-status-plugin.$version.tar.gz $author
|
||||
zip -r $working_dir/mibew-operator-status-plugin.$version.zip $author
|
||||
|
||||
rm -rf $plugin_root_dir
|
||||
|
@ -1,4 +1,4 @@
|
||||
mibew_boilerplate_hello:
|
||||
everyx_operator_status:
|
||||
path: /opstatus/{opcode}
|
||||
defaults:
|
||||
_controller: Everyx\Mibew\Plugin\OperatorStatus\Controller\OperatorStatusController::indexAction
|
Loading…
Reference in New Issue
Block a user